Adding a dumb serial echo thingy

This commit is contained in:
Dan Buch 2013-12-29 18:49:27 -05:00
parent 3c909e79e9
commit 3a37663fed
2 changed files with 14 additions and 0 deletions

1
arduino/SerialEcho/Makefile Symbolic link
View File

@ -0,0 +1 @@
../arduino.mk

View File

@ -0,0 +1,13 @@
const unsigned int BAUD_RATE = 9600;
void setup() {
Serial.begin(BAUD_RATE);
}
void loop() {
if (Serial.available() <= 0) {
return;
}
Serial.write(Serial.read());
}