summaryrefslogtreecommitdiff
path: root/comm/uart/arduino_uart/arduino_uart.ino
diff options
context:
space:
mode:
Diffstat (limited to 'comm/uart/arduino_uart/arduino_uart.ino')
-rw-r--r--comm/uart/arduino_uart/arduino_uart.ino14
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