blob: de826c97377760bbc61ede4695ce6473b679bdf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
void setup() {
// put your setup code here, to run once:
Serial.begin(19200);
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available()) {
// Read the most recent byte
byte byteRead = Serial.read();
// ECHO the value that was read
Serial.write(byteRead);
}
}
|