Skip to content

Commit 704da31

Browse files
authored
Merge pull request #9869 from jepler/floppsy-board-display
floppsy: add board.DISPLAY
2 parents d2ce88e + 7c28ec6 commit 704da31

File tree

1 file changed

+4
-0
lines changed
  • ports/raspberrypi/boards/adafruit_floppsy_rp2040

1 file changed

+4
-0
lines changed

ports/raspberrypi/boards/adafruit_floppsy_rp2040/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

@@ -54,6 +56,8 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
5456
{ MP_OBJ_NEW_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO27) },
5557
{ MP_OBJ_NEW_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_GPIO27) },
5658

59+
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].framebuffer_display)},
60+
5761
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
5862
{ MP_ROM_QSTR(MP_QSTR_STEMMA_I2C), MP_ROM_PTR(&board_i2c_obj) },
5963
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },

0 commit comments

Comments
 (0)