diff options
Diffstat (limited to 'examples/SerialPrint/SerialPrint.ino')
| -rw-r--r-- | examples/SerialPrint/SerialPrint.ino | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/SerialPrint/SerialPrint.ino b/examples/SerialPrint/SerialPrint.ino new file mode 100644 index 0000000..e129c9d --- /dev/null +++ b/examples/SerialPrint/SerialPrint.ino @@ -0,0 +1,10 @@ +void setup() { + Serial.begin(9600); + Serial.print("Press any key: "); +} + +void loop() { + if (Serial.available()) { + Serial.println(Serial.read()); + } +} |
