I'm trying to communicate with FrSky radio module that's transmitting with serial: 9600bps, 8bit, No parity, 1 stopping bit, INVERTED. Earlier, with Arduino Nano I used:
but I had issues with softserial so I decided to use Teensy LC hardware serial instead:
But the data coming in does not look as it should: it repeats as expected but the values are different.
Does Teensy LC even support those SERIAL_8N1_RXINV_TXINV flags? Teensy documentation does not mention LC at all... I've found in MKL26Z64VFT4 description that there is a way to mark incoming signal as inverted (page 1217) using UART_S2 register but I have no idea how to change it from Arduino code.
Any ideas?
Code:
SoftwareSerial softSerial(14, 15, true);
softSerial.begin(9600);
Code:
Serial2.begin(9600, SERIAL_8N1_RXINV_TXINV);
Does Teensy LC even support those SERIAL_8N1_RXINV_TXINV flags? Teensy documentation does not mention LC at all... I've found in MKL26Z64VFT4 description that there is a way to mark incoming signal as inverted (page 1217) using UART_S2 register but I have no idea how to change it from Arduino code.
Any ideas?