Skip to content

Commit 9f1ccbc

Browse files
committed
Add board.DISPLAY definition
1 parent ac498d1 commit 9f1ccbc

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

ports/espressif/boards/makerfabs_tft7/pins.c

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

77
#include "py/objtuple.h"
88
#include "shared-bindings/board/__init__.h"
9+
#include "shared-module/displayio/__init__.h"
910

1011
static const mp_rom_obj_tuple_t tft_r_pins = {
1112
{&mp_type_tuple},
@@ -125,6 +126,8 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
125126
// { MP_ROM_QSTR(MP_QSTR_SDIO_D0), MP_ROM_PTR(&pin_GPIO13) },
126127
// { MP_ROM_QSTR(MP_QSTR_SDIO_CLK), MP_ROM_PTR(&pin_GPIO12) },
127128

129+
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display) },
130+
128131
// boot mode button can be used in SW as well
129132
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO1) },
130133

0 commit comments

Comments
 (0)