Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- Serial.begin(9600);
- }
- void loop()
- {
- if(Serial.available() > 0)
- {
- char input[16];
- byte len = Serial.available();
- Serial.readBytes(input, 16);
- input[len] = '\0';
- Serial.println(input);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement