File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
ports/raspberrypi/boards/pimoroni_badger2350 Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,15 @@ static const mp_rom_map_elem_t lut_update_table[] = {
2020};
2121MP_DEFINE_CONST_DICT (lut_update_dict , lut_update_table );
2222
23- MP_DEFINE_CONST_OBJ_TYPE (
24- display_type ,
25- MP_QSTR_display ,
26- MP_TYPE_FLAG_HAS_SPECIAL_ACCESSORS | ~MP_TYPE_FLAG_BINDS_SELF ,
27- locals_dict , & lut_update_dict
28- );
23+ const mp_obj_module_t display_module = {
24+ .base = { & mp_type_module },
25+ .globals = (mp_obj_dict_t * )& lut_update_dict ,
26+ };
2927
3028static const mp_rom_map_elem_t board_module_globals_table [] = {
3129 CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
3230
33- { MP_ROM_QSTR (MP_QSTR_display ), MP_ROM_PTR (& display_type ) },
31+ { MP_ROM_QSTR (MP_QSTR_display ), MP_ROM_PTR (& display_module ) },
3432
3533 { MP_ROM_QSTR (MP_QSTR_GP0 ), MP_ROM_PTR (& pin_GPIO0 ) },
3634 { MP_ROM_QSTR (MP_QSTR_LED ), MP_ROM_PTR (& pin_GPIO0 ) },
You can’t perform that action at this time.
0 commit comments