Skip to content

Commit 21e7e00

Browse files
committed
remove UART object and use pins for IR; add asyncio frozen
1 parent f774510 commit 21e7e00

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Bitmap_Font
2020
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Text
2121
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Shapes
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_asyncio
25+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Ticks

ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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
41+
// GPIO0 and GPIO1 are used for IR and not for UART
4242
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO0) },
4343
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO1) },
4444

@@ -111,17 +111,16 @@ 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 some boards
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)
119118
// { MP_ROM_QSTR(MP_QSTR_VID), MP_ROM_PTR(&pin_GPIO29) },
120119

121120

122121
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
122+
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
123123
// { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
124-
125124
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].epaper_display)},
126125

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

0 commit comments

Comments
 (0)