Skip to content

Commit 9133ea2

Browse files
committed
Add board.DISPLAY()
1 parent c6ae68a commit 9133ea2

File tree

1 file changed

+4
-0
lines changed
  • ports/espressif/boards/m5stack_tab5

1 file changed

+4
-0
lines changed

ports/espressif/boards/m5stack_tab5/pins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "shared-bindings/board/__init__.h"
88

9+
#include "shared-module/displayio/__init__.h"
10+
911
static const mp_rom_map_elem_t board_module_globals_table[] = {
1012
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
1113

@@ -124,5 +126,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
124126
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
125127
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
126128
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
129+
130+
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)}
127131
};
128132
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)