Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Serial Echo v 1.0 ------ 8 August 2020
- Runs on Uno/Mega/Nano/whatever because only the PC-USB connection is used.
- This sketch is for testing what serial data the PC is sending to the Arduino.
- This sketch listens for characters on the USB serial line, then returns the char integer (ordinal) value.
- */
- byte byteRead;
- void setup() {
- Serial.begin(9600);
- }
- void loop() {
- if (Serial.available()) {
- byteRead = Serial.read();
- Serial.println(byteRead);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment