From 55d8f0db4eb8eaf572cc36ee942c48577b5528da Mon Sep 17 00:00:00 2001 From: Alex Sirota <67526318+ajs256@users.noreply.github.com> Date: Wed, 10 May 2023 11:19:47 -0700 Subject: [PATCH] Add board.DISPLAY to hack_club_sprig --- ports/raspberrypi/boards/hack_club_sprig/pins.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/raspberrypi/boards/hack_club_sprig/pins.c b/ports/raspberrypi/boards/hack_club_sprig/pins.c index f82b8fafc5..f0a38cbc07 100644 --- a/ports/raspberrypi/boards/hack_club_sprig/pins.c +++ b/ports/raspberrypi/boards/hack_club_sprig/pins.c @@ -1,5 +1,8 @@ #include "shared-bindings/board/__init__.h" +#include "supervisor/board.h" +#include "shared-module/displayio/__init__.h" + STATIC const mp_rom_map_elem_t board_module_globals_table[] = { CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS @@ -81,5 +84,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_WHITE_LED), MP_ROM_PTR(&pin_GPIO28) }, + { MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)}, + }; MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);