Add a new example to show how serial monitor can be used

This commit is contained in:
Sudar 2015-03-28 19:40:50 +05:30
parent 6f326e6e26
commit 861d2ff72f
3 changed files with 16 additions and 3 deletions

View file

@ -3,9 +3,7 @@ the different usage patterns
- BlinkInAVRC - Shows how to use plain AVR C code
- ATtinyBlink - Shows how to use different cores like ATtiny
These three examples are a step back, in the "tests" directory.
- Blink - Shows normal usage
- HelloWorld - Shows how to include Arduino libraries
- SerialPrint - Shows how serial monitor can be used
- BlinkChipKIT - Shows how to use ChipKIT

View file

@ -0,0 +1,5 @@
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
BOARD_TAG = uno
include ../../Arduino.mk

View file

@ -0,0 +1,10 @@
void setup() {
Serial.begin(9600);
Serial.print("Press any key: ");
}
void loop() {
if (Serial.available()) {
Serial.println(Serial.read());
}
}