Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. char mystr[5]; //Initialized variable to store recieved data
  2.  
  3. void setup() {
  4. // Begin the Serial Monitor at 9600 Baud
  5. Serial.begin(9600);
  6. }
  7.  
  8. void loop() {
  9. Serial.readBytes(mystr,5); //Read the serial data and store in var
  10. delay(1000);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement