hi! i'm new and i'm noob...and my english is very bad, sorry.
i dont understand the exemple SerialEvent on the line 49, where is write :
char inChar = (char)Serial.read();
what does mean (char) in the parenthesis?
thank you for help me
hi! i'm new and i'm noob...and my english is very bad, sorry.
i dont understand the exemple SerialEvent on the line 49, where is write :
char inChar = (char)Serial.read();
what does mean (char) in the parenthesis?
thank you for help me
Serial.read returns an int.
The (char) shows that you really want to treat it as a char.