Open kallaspriit opened 2 years ago
I'm sorry, I was on travel when you sent this and it must have slipped past my radar. I'd like to implement this - is it possible to implement an inverted serial on the Nano? Does it only have two Serial ports or are there more to support? Would you be willing to test versions of the library that add support? I'm not very familiar with that platform.
Not sure about inverted but I could test the uninverted implementation. You could also pick up the board for testing, they're not expensive.
Hi Kallaspriit, thank you very much. I am going to try your solution. I am working with a Nano 33 BLE just now.
Found a way to get the library to work on the Arduino Nano 33 BLE.
By default the UART on the NRF52 does not support custom baud rates or UART config other than the default but these can be configured using registers.
Basically I did something like this:
At the start of
sbus.cpp
after the includes:Added custom
Begin
signature for the NRF52840 to support both UART0 and UART1:And then added custom initialization in
Begin
:The same could be done for
SbusTx
.Tested with Frsky R-XSR using the uninverted sbus signal from the B-pad and it works great.
Would be cool if this support was included in the library and if not then maybe it helps someone who finds this issue :)