Besoin d'aide arduino & max tout simple

Re-re salut
je viens d'avoir une lueur, j'ai voulu tester ton truc mais mon max msp etait une version démo (expirée) ,bref j'ai recherché une app max pour arduino .
je ne sais pas si c'est volontaire de ta part ou pas, mais il me semble qu'il te manque qq chose comme çà !!
a toi de modifier les variables
en esperant que c'est bien çà.
void loop()
{
byte val;

// check if data has been sent from the computer
if (Serial.available()) {
// read the most recent byte (which will be from 0 to 255)
val = Serial.read();
// set the brightness of the LED
analogWrite(ledPin, val);
}
}