From 861d2ff72f9597c5ca0e486437a7c73f3262cc69 Mon Sep 17 00:00:00 2001 From: Sudar Date: Sat, 28 Mar 2015 19:40:50 +0530 Subject: Add a new example to show how serial monitor can be used --- examples/SerialPrint/SerialPrint.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/SerialPrint/SerialPrint.ino (limited to 'examples/SerialPrint/SerialPrint.ino') 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()); + } +} -- cgit v1.2.3