Advertisement
Bladtman

Untitled

Aug 26th, 2012
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. //code to read the 'R' character
  2. char[5] readString;
  3. for(int i=0; i<4; i++) {
  4.     readString[i]=Serial.Read();
  5. }
  6. readString[4] = '\0'
  7. int a = atoi(readString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement