diff options
| author | Abel Tim <abel@main.home> | 2024-06-03 17:38:19 +0200 |
|---|---|---|
| committer | Abel Tim <abel@main.home> | 2024-06-03 17:38:19 +0200 |
| commit | 51051da4e85ae296bedb6d3709947e5311deee07 (patch) | |
| tree | aa034dfada5c121e4e00d82d131c0d9de919cef5 /comm/uart/arduino_uart | |
| parent | 2f2acda8dc9fd863a1e45abca2efe185a42563d5 (diff) | |
| download | robotica-51051da4e85ae296bedb6d3709947e5311deee07.tar.gz robotica-51051da4e85ae296bedb6d3709947e5311deee07.zip | |
update com
Diffstat (limited to 'comm/uart/arduino_uart')
| -rw-r--r-- | comm/uart/arduino_uart/arduino_uart.ino | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/comm/uart/arduino_uart/arduino_uart.ino b/comm/uart/arduino_uart/arduino_uart.ino new file mode 100644 index 0000000..de826c9 --- /dev/null +++ b/comm/uart/arduino_uart/arduino_uart.ino @@ -0,0 +1,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); + } +}
\ No newline at end of file |
