diff --git a/arduino/SerialEcho/Makefile b/arduino/SerialEcho/Makefile new file mode 120000 index 0000000..51c7f30 --- /dev/null +++ b/arduino/SerialEcho/Makefile @@ -0,0 +1 @@ +../arduino.mk \ No newline at end of file diff --git a/arduino/SerialEcho/SerialEcho.ino b/arduino/SerialEcho/SerialEcho.ino new file mode 100644 index 0000000..5565d20 --- /dev/null +++ b/arduino/SerialEcho/SerialEcho.ino @@ -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()); +}