diff options
| author | Abel Tim <abel.tim.t@gmail.com> | 2025-03-21 20:47:25 +0100 |
|---|---|---|
| committer | Abel Tim <abel.tim.t@gmail.com> | 2025-03-21 20:47:25 +0100 |
| commit | 5439a5f51122176e995b299100586d204bb7a0a0 (patch) | |
| tree | 447df8c1a22066f01a49792ecd1f5b8b90f2b8d8 /CODE/debug/IR/communication/rx_teensy/rx_teensy.ino | |
| parent | 3201e4b92e5d13a598af98efb1bcadecefcd3508 (diff) | |
| download | robotica-5439a5f51122176e995b299100586d204bb7a0a0.tar.gz robotica-5439a5f51122176e995b299100586d204bb7a0a0.zip | |
fix serial
Diffstat (limited to 'CODE/debug/IR/communication/rx_teensy/rx_teensy.ino')
| -rw-r--r-- | CODE/debug/IR/communication/rx_teensy/rx_teensy.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino b/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino index 96e14eb..68a768b 100644 --- a/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino +++ b/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino @@ -6,12 +6,12 @@ int nir = "-99"; // which ir sensor it is int pir = "-99"; // amount of pulses it had void setup() { Serial.begin(9600); - Serial1.begin(9600); //19200 + Serial3.begin(9600); //19200 } void loop() { - if (Serial1.available() > 0) { - incomingbyte = Serial1.read(); + if (Serial3.available() > 0) { + incomingbyte = Serial3.read(); //Serial.print(char(incomingbyte)); if (incomingbyte == 's'){ iswriting = true; |
