From 24173296670dafc88f06809b7a6fd932d2162763 Mon Sep 17 00:00:00 2001 From: Shashank Agarwal <48916902+Witty-Wizard@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:03:35 -0800 Subject: [PATCH] Added: Uart inversion to RP2040 code --- src/ibus/ibus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ibus/ibus.cpp b/src/ibus/ibus.cpp index f5f8afe..6ac0eb2 100644 --- a/src/ibus/ibus.cpp +++ b/src/ibus/ibus.cpp @@ -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."