box-o-sand/arduino/SerialEcho/SerialEcho.ino

14 lines
180 B
Arduino
Raw Normal View History

2013-12-29 23:49:27 +00:00
const unsigned int BAUD_RATE = 9600;
void setup() {
Serial.begin(BAUD_RATE);
}
void loop() {
if (Serial.available() <= 0) {
return;
}
Serial.write(Serial.read());
}