summaryrefslogtreecommitdiff
path: root/code/debug/IR/teensy-read/teensy-read.ino
diff options
context:
space:
mode:
authorAbel Tim <abel.tim.t@gmail.com>2026-02-08 14:09:12 +0100
committerAbel Tim <abel.tim.t@gmail.com>2026-02-08 14:09:12 +0100
commit3d4372df3c0fd76fd78f7ba6dee02f678ffa51f2 (patch)
tree68028bda5e90b2e2d4de0590b51c7c96d337a37d /code/debug/IR/teensy-read/teensy-read.ino
parent42dfd646a14c5d59fb5bf47c5453c6b7b64f63cf (diff)
downloadrobotica-3d4372df3c0fd76fd78f7ba6dee02f678ffa51f2.tar.gz
robotica-3d4372df3c0fd76fd78f7ba6dee02f678ffa51f2.zip
i am the only one who reads there anyways so why do i bother
imagen there is a butifull commit message here _____________________________________ / Nothing so needs reforming as other \ | people's habits. | | | \ -- Mark Twain / ------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
Diffstat (limited to 'code/debug/IR/teensy-read/teensy-read.ino')
-rw-r--r--code/debug/IR/teensy-read/teensy-read.ino30
1 files changed, 30 insertions, 0 deletions
diff --git a/code/debug/IR/teensy-read/teensy-read.ino b/code/debug/IR/teensy-read/teensy-read.ino
new file mode 100644
index 0000000..6ce767b
--- /dev/null
+++ b/code/debug/IR/teensy-read/teensy-read.ino
@@ -0,0 +1,30 @@
+int incomingByte = 0; // for incoming serial data
+
+void setup() {
+ Serial.begin(9600);
+ Serial1.begin(75);
+ Serial2.begin(75);
+
+}
+
+// _________________________________________
+// / fucking mixes the signal and prints but \
+// | dont know recieve format yet so keeping |
+// \ it here /
+// -----------------------------------------
+// \ ^__^
+// \ (oo)\_______
+// (__)\ )\/\
+// ||----w |
+// || ||
+
+void loop() {
+ if (Serial1.available() > 0) {
+ incomingByte = Serial.read();
+ Serial.println(incomingByte, DEC);
+ }
+ if (Serial2.available() > 0) {
+ incomingByte = Serial.read();
+ Serial.println(incomingByte, DEC);
+ }
+} \ No newline at end of file