Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char mystr[5]; //Initialized variable to store recieved data
- void setup() {
- // Begin the Serial Monitor at 9600 Baud
- Serial.begin(9600);
- }
- void loop() {
- Serial.readBytes(mystr,5); //Read the serial data and store in var
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement