14 lines
180 B
Arduino
14 lines
180 B
Arduino
|
const unsigned int BAUD_RATE = 9600;
|
||
|
|
||
|
void setup() {
|
||
|
Serial.begin(BAUD_RATE);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
if (Serial.available() <= 0) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Serial.write(Serial.read());
|
||
|
}
|