osc

le programme fonctionne parfaitement merci pour l'aide
voici le prog fini

#include <SPI.h>
#include <Ethernet.h>
#include <ArdOSC.h>
#include <UTFT.h>

byte myMac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte myIp[]  = { 192, 168, 127, 11 }; //adresse du module
int destPort=12001;//port de communication idem sur max et module
byte destIp[]  = { 192, 168, 127, 10 };//adresse de l'ordinateur
String adr1, adr2 ;
char adr3;
char oscadr;
OSCClient client;
const int firstPin = 2;         // first digital input
const int inputNumber = 6; // number of inputs
//pour ecran LCD
extern uint8_t SmallFont[];
UTFT myGLCD(LPH9135,6,5,2,3,4);

int digitalStates[inputNumber];

//create new osc message
OSCMessage mes;


void setup(){ 
  
// configure all your inputs
  for(int i = firstPin ; i < inputNumber + firstPin ; i++)
  {
    pinMode(i, INPUT);
  }
 
 Ethernet.begin(myMac ,myIp); 
 // initialize the pushbutton pin as an input:
adr1 = String("/Ard/");
//pour lcd
// Setup the LCD
  myGLCD.InitLCD(PORTRAIT);
  myGLCD.setFont(SmallFont);



}
  
void loop(){
 

for(int i = firstPin ; i < inputNumber + firstPin ; i++)
 {
   ////////////////////generation de l'adresse OSC//////////
  int currentPinState = digitalRead(i);
  adr2 = adr1 +i  ;
  char adr3[16];
  adr2.toCharArray(adr3, 50);
  
  ////////////////////generation du message osc////////////
  mes.setAddress(destIp,destPort);
  mes.beginMessage(adr3);
  mes.addArgInt32(currentPinState);
  client.send(&mes);
  mes.flush(); //object data clear
  
  
  ///////////////////gestion de l'affichage LCD////////////////
  myGLCD.clrScr();
  myGLCD.setContrast(0);
  myGLCD.fillScr(0,0,255);
  myGLCD.setColor(255,0,0);
  myGLCD.fillRoundRect(2, 40, 125, 88);
  myGLCD.setColor(255,255,255);
  myGLCD.setBackColor(255,0,0);
  myGLCD.print("OSC ro2 module", CENTER, 46);
  myGLCD.print("valeur de la pin",i, CENTER, 66);
  myGLCD.print("Etat",currentPinState, CENTER, 76);
  
  delay(50);

 }
}