Mike already has done:
while(serialAvailable() == 0) { } //-snip-
x = serialRead();
Will not compile, but:
while(Serial.available() == 0) { } // There really is nothing between the {} braces
char x = Serial.read();
Will compile.
![]()
Mike already has done:
while(serialAvailable() == 0) { } //-snip-
x = serialRead();
Will not compile, but:
while(Serial.available() == 0) { } // There really is nothing between the {} braces
char x = Serial.read();
Will compile.
![]()