Skip to content

Commit dfcd4a9

Browse files
authored
Merge pull request #9389 from bradanlane/bls_rp2040_explorer_uart
remove UART object and use pins for IR
2 parents f774510 + 1e6d7e6 commit dfcd4a9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define MICROPY_HW_MCU_NAME "rp2040"
1111

1212
#define MICROPY_HW_LED_STATUS (&pin_GPIO4)
13+
// the UART pins are used for IR
1314
// #define DEFAULT_UART_BUS_TX (&pin_GPIO0)
1415
// #define DEFAULT_UART_BUS_RX (&pin_GPIO1)
1516
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)

ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ EXTERNAL_FLASH_DEVICES = "GD25Q64C"
1515

1616
CIRCUITPY__EVE = 1
1717

18-
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
18+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_asyncio
1919
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Bitmap_Font
20-
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Text
2120
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Shapes
21+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Text
2222
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
23+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IRRemote
24+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
25+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Ticks

ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
3838

3939
{ MP_ROM_QSTR(MP_QSTR_GP0), MP_ROM_PTR(&pin_GPIO0) },
4040
{ MP_ROM_QSTR(MP_QSTR_GP1), MP_ROM_PTR(&pin_GPIO1) },
41-
// GPIO0 and GPIO1 are also the UART
42-
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO0) },
43-
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO1) },
41+
// GPIO0 and GPIO1 are used for IR and not for UART
42+
{ MP_ROM_QSTR(MP_QSTR_IR_TX), MP_ROM_PTR(&pin_GPIO0) },
43+
{ MP_ROM_QSTR(MP_QSTR_IR_RX), MP_ROM_PTR(&pin_GPIO1) },
4444

4545
{ MP_ROM_QSTR(MP_QSTR_GP2), MP_ROM_PTR(&pin_GPIO2) },
4646
{ MP_ROM_QSTR(MP_QSTR_GP3), MP_ROM_PTR(&pin_GPIO3) },
@@ -111,17 +111,13 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
111111
{ MP_ROM_QSTR(MP_QSTR_TOUCH9), MP_ROM_PTR(&pin_GPIO27) },
112112

113113
{ MP_ROM_QSTR(MP_QSTR_GP28), MP_ROM_PTR(&pin_GPIO28) },
114-
// GPIO28 is also the interrupt pin of the accelerometer
115-
{ MP_ROM_QSTR(MP_QSTR_ACCEL_INT), MP_ROM_PTR(&pin_GPIO28) },
114+
// GPIO28 is also the interrupt pin of the accelerometer on one version of the board
116115

117116
{ MP_ROM_QSTR(MP_QSTR_GP29), MP_ROM_PTR(&pin_GPIO29) },
118117
// GPIO29 is also the ID value of the board (an analog read value between 0 .. 4096)
119-
// { MP_ROM_QSTR(MP_QSTR_VID), MP_ROM_PTR(&pin_GPIO29) },
120-
121118

122119
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
123-
// { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
124-
120+
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
125121
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].epaper_display)},
126122

127123
{ MP_ROM_QSTR(MP_QSTR_VID), MP_ROM_PTR(&board_vid_obj) },

0 commit comments

Comments
 (0)