diff options
| author | Abel Tim <git@abeltim.com> | 2025-05-11 22:01:13 +0200 |
|---|---|---|
| committer | Abel Tim <git@abeltim.com> | 2025-05-11 22:01:13 +0200 |
| commit | 1fb85fcf2582320cc41621b90adbb0a1aef551e0 (patch) | |
| tree | de069e33a26c801f9488f79099e2dca02e357728 /code/debug/communication/rx/rx_teensy/src | |
| parent | 4680274ed48b38fdcc3ab292ad4856312977a9e4 (diff) | |
| download | robotica-1fb85fcf2582320cc41621b90adbb0a1aef551e0.tar.gz robotica-1fb85fcf2582320cc41621b90adbb0a1aef551e0.zip | |
added encoder again
Multi-line description of commit,
feel free to be detailed.
Signed-off-by: Abel Tim <git@abeltim.com>
Diffstat (limited to 'code/debug/communication/rx/rx_teensy/src')
| -rw-r--r-- | code/debug/communication/rx/rx_teensy/src/main.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/code/debug/communication/rx/rx_teensy/src/main.cpp b/code/debug/communication/rx/rx_teensy/src/main.cpp deleted file mode 100644 index 768b70b..0000000 --- a/code/debug/communication/rx/rx_teensy/src/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// this code is for Teensy 4.1 to read serial data - -#include <Arduino.h> - -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 |
