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/communication/rx/rx_teensy/src/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 code/debug/communication/rx/rx_teensy/src/main.cpp (limited to 'code/debug/communication/rx/rx_teensy/src') diff --git a/code/debug/communication/rx/rx_teensy/src/main.cpp b/code/debug/communication/rx/rx_teensy/src/main.cpp new file mode 100644 index 0000000..f3e9e79 --- /dev/null +++ b/code/debug/communication/rx/rx_teensy/src/main.cpp @@ -0,0 +1,20 @@ +// this code is for Teensy 4.1 to read serial data and relay it to serial 1(computer) + +#include + +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)); + } + milis(1); + +} \ No newline at end of file -- cgit v1.2.3