how is that ? you mean the code is worng ?
i have other problem when i change the type of serial.read() to int the number i get not like what i put exemple i put 1 and the result it 49 should i convert it to DEC or what
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
int s = Serial.read();
Serial.println(s);
if (s == 1) {
Serial.println("Hello World");
}
else {
Serial.println("nothing");
}
}
}
yup you right but with arduino uno i dont face those problem is there a difference between them ??
for the " nothing " comment is just for testing haha
thank you very much for your time