Skip to content

Commit 55d8f0d

Browse files
committed
Add board.DISPLAY to hack_club_sprig
1 parent 08874af commit 55d8f0d

File tree

1 file changed

+5
-0
lines changed
  • ports/raspberrypi/boards/hack_club_sprig

1 file changed

+5
-0
lines changed

ports/raspberrypi/boards/hack_club_sprig/pins.c

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

3+
#include "supervisor/board.h"
4+
#include "shared-module/displayio/__init__.h"
5+
36
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
47
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
58

@@ -81,5 +84,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
8184

8285
{ MP_ROM_QSTR(MP_QSTR_WHITE_LED), MP_ROM_PTR(&pin_GPIO28) },
8386

87+
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)},
88+
8489
};
8590
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)