Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //code to read the 'R' character
- char[5] readString;
- for(int i=0; i<4; i++) {
- readString[i]=Serial.Read();
- }
- readString[4] = '\0'
- int a = atoi(readString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement