Skip to content

Commit 3832dae

Browse files
committed
rp2040_connect: change pinmux
1 parent 054edb8 commit 3832dae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

main/CommandHandler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,11 +1615,7 @@ CommandHandlerClass::CommandHandlerClass()
16151615
{
16161616
}
16171617

1618-
#if defined(NANO_RP2040_CONNECT)
1619-
static const int GPIO_IRQ = 26;
1620-
#else
16211618
static const int GPIO_IRQ = 0;
1622-
#endif
16231619

16241620
void CommandHandlerClass::begin()
16251621
{

main/sketch.ino.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ void setupBluetooth() {
118118
periph_module_enable(PERIPH_UART1_MODULE);
119119
periph_module_enable(PERIPH_UHCI0_MODULE);
120120

121-
#if defined(UNO_WIFI_REV2) || defined(NANO_RP2040_CONNECT)
121+
#if defined(UNO_WIFI_REV2)
122122
uart_set_pin(UART_NUM_1, 1, 3, 33, 0); // TX, RX, RTS, CTS
123+
#elif defined(NANO_RP2040_CONNECT)
124+
uart_set_pin(UART_NUM_1, 1, 3, 33, 12); // TX, RX, RTS, CTS
123125
#else
124126
uart_set_pin(UART_NUM_1, 23, 12, 18, 5);
125127
#endif

0 commit comments

Comments
 (0)