Skip to content

Commit

Permalink
Added: Uart inversion to RP2040 code
Browse files Browse the repository at this point in the history
  • Loading branch information
Witty-Wizard authored Dec 6, 2024
1 parent b97e68f commit 2417329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ibus/ibus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ void ibus::begin() {
#elif defined(ARDUINO_ARCH_RP2040)
SerialUART *serialPort = (SerialUART *)_rxPort;
serialPort->setPinout(_txPin, _rxPin);
serialPort->setInvertRX(_inverted);
serialPort->setInvertTX(_inverted);
serialPort->begin(IBUS_BAUDRATE, SERIAL_8N1);
#else
#warning #warning "Unsupported hardware platform."
Expand Down

0 comments on commit 2417329

Please sign in to comment.