diff options
| author | Sudar <sudar@sudarmuthu.com> | 2015-03-28 19:40:50 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2015-03-28 19:40:50 +0530 |
| commit | 861d2ff72f9597c5ca0e486437a7c73f3262cc69 (patch) | |
| tree | 75d71fb3a26ed57336195729622d1265e8490290 /examples/SerialPrint/SerialPrint.ino | |
| parent | 6f326e6e2625fb66f77891117647b37144e97714 (diff) | |
Add a new example to show how serial monitor can be used
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()); + } +} |
