From 6e296999d6e42ba13cc9a0413930b9013aa0e8d7 Mon Sep 17 00:00:00 2001 From: Pontus Oldberg Date: Sat, 25 Sep 2021 16:19:48 +0200 Subject: [PATCH] Fixed incorrect pin definitions. --- .../raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h | 2 +- ports/raspberrypi/boards/challenger_rp2040_wifi/pins.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h index 8382822b29..a8df6a1233 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h @@ -2,7 +2,7 @@ #define MICROPY_HW_MCU_NAME "rp2040" #define DEFAULT_UART_BUS_TX (&pin_GPIO16) -#define DEFAULT_UART_BUS_RX (&pin_GPIO16) +#define DEFAULT_UART_BUS_RX (&pin_GPIO17) #define DEFAULT_I2C_BUS_SDA (&pin_GPIO0) #define DEFAULT_I2C_BUS_SCL (&pin_GPIO1) #define DEFAULT_SPI_BUS_SCK (&pin_GPIO22) diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi/pins.c b/ports/raspberrypi/boards/challenger_rp2040_wifi/pins.c index baec08eccb..bae1951830 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi/pins.c +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi/pins.c @@ -42,8 +42,8 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO16) }, { MP_ROM_QSTR(MP_QSTR_GP16), MP_ROM_PTR(&pin_GPIO16) }, - { MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO17) }, - { MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO17) }, + { MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO17) }, + { MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO17) }, { MP_ROM_QSTR(MP_QSTR_GP17), MP_ROM_PTR(&pin_GPIO17) }, { MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_GPIO22) },