summaryrefslogtreecommitdiff
path: root/CODE/debug/IR/communication/direct_rx/direct_rx.ino
diff options
context:
space:
mode:
Diffstat (limited to 'CODE/debug/IR/communication/direct_rx/direct_rx.ino')
-rw-r--r--CODE/debug/IR/communication/direct_rx/direct_rx.ino15
1 files changed, 15 insertions, 0 deletions
diff --git a/CODE/debug/IR/communication/direct_rx/direct_rx.ino b/CODE/debug/IR/communication/direct_rx/direct_rx.ino
new file mode 100644
index 0000000..336b27b
--- /dev/null
+++ b/CODE/debug/IR/communication/direct_rx/direct_rx.ino
@@ -0,0 +1,15 @@
+int incomingbyte = 0;
+void setup() {
+ Serial.begin(9600);
+ Serial2.begin(9600); //19200
+ Serial3.begin(9600); //19200
+ Serial.print("Starting ....");
+}
+
+void loop() {
+ if (Serial3.available() > 0) {
+ incomingbyte = Serial3.read();
+ Serial.print(char(incomingbyte));
+ }
+
+}