Skip to content

Commit e31d84d

Browse files
authored
Merge pull request #6222 from todbot/main
espressif_esp32s3_usb_otg_n8 add board.DISPLAY since already set up by CirPy
2 parents d9418fb + 390a473 commit e31d84d

File tree

1 file changed

+3
-0
lines changed
  • ports/espressif/boards/espressif_esp32s3_usb_otg_n8

1 file changed

+3
-0
lines changed

ports/espressif/boards/espressif_esp32s3_usb_otg_n8/pins.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "shared-bindings/board/__init__.h"
22

3+
#include "shared-module/displayio/__init__.h"
4+
35
// Pin names from:
46
// https://espressif-docs.readthedocs-hosted.com/projects/espressif-esp-dev-kits/en/latest/esp32s3/esp32-s3-usb-otg/user_guide.html#pin-layout
57

@@ -44,5 +46,6 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4446
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO44) },
4547

4648
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
49+
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)},
4750
};
4851
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)