From 3d4372df3c0fd76fd78f7ba6dee02f678ffa51f2 Mon Sep 17 00:00:00 2001 From: Abel Tim Date: Sun, 8 Feb 2026 14:09:12 +0100 Subject: 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 | || || --- code/debug/IR/teensy-read/teensy-read.ino | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 code/debug/IR/teensy-read/teensy-read.ino (limited to 'code/debug/IR/teensy-read') 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 -- cgit v1.2.3