Adding a dumb serial echo thingy
This commit is contained in:
parent
3c909e79e9
commit
3a37663fed
1
arduino/SerialEcho/Makefile
Symbolic link
1
arduino/SerialEcho/Makefile
Symbolic link
@ -0,0 +1 @@
|
||||
../arduino.mk
|
13
arduino/SerialEcho/SerialEcho.ino
Normal file
13
arduino/SerialEcho/SerialEcho.ino
Normal 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());
|
||||
}
|
Loading…
Reference in New Issue
Block a user