@@ -60,7 +60,6 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
6060 { MP_ROM_QSTR (MP_QSTR_A3 ), MP_ROM_PTR (& pin_GPIO29 ) },
6161 { MP_ROM_QSTR (MP_QSTR_VOLTAGE_MONITOR ), MP_ROM_PTR (& pin_GPIO29 ) },
6262
63-
6463 // Start Sprig-specific definitions
6564
6665 { MP_ROM_QSTR (MP_QSTR_BLUE_LED ), MP_ROM_PTR (& pin_GPIO4 ) },
@@ -79,18 +78,23 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
7978 { MP_ROM_QSTR (MP_QSTR_BUTTON_K ), MP_ROM_PTR (& pin_GPIO14 ) },
8079 { MP_ROM_QSTR (MP_QSTR_BUTTON_L ), MP_ROM_PTR (& pin_GPIO15 ) },
8180
82- { MP_ROM_QSTR (MP_QSTR_MISO ), MP_ROM_PTR (& pin_GPIO16 ) },
83- { MP_ROM_QSTR (MP_QSTR_TFT_LITE ), MP_ROM_PTR (& pin_GPIO17 ) },
8481 { MP_ROM_QSTR (MP_QSTR_SCK ), MP_ROM_PTR (& pin_GPIO18 ) },
8582 { MP_ROM_QSTR (MP_QSTR_MOSI ), MP_ROM_PTR (& pin_GPIO19 ) },
86- { MP_ROM_QSTR (MP_QSTR_TFT_CS ), MP_ROM_PTR (& pin_GPIO20 ) },
83+ { MP_ROM_QSTR (MP_QSTR_MISO ), MP_ROM_PTR (& pin_GPIO16 ) },
84+
8785 { MP_ROM_QSTR (MP_QSTR_CARD_CS ), MP_ROM_PTR (& pin_GPIO21 ) },
88- { MP_ROM_QSTR (MP_QSTR_TFT_DC ), MP_ROM_PTR (& pin_GPIO22 ) },
89- { MP_ROM_QSTR (MP_QSTR_TFT_RESET ), MP_ROM_PTR (& pin_GPIO23 ) },
86+
87+ { MP_OBJ_NEW_QSTR (MP_QSTR_TFT_DC ), MP_ROM_PTR (CIRCUITPY_BOARD_TFT_DC ) },
88+ { MP_OBJ_NEW_QSTR (MP_QSTR_TFT_CS ), MP_ROM_PTR (CIRCUITPY_BOARD_TFT_CS ) },
89+ { MP_OBJ_NEW_QSTR (MP_QSTR_TFT_RESET ), MP_ROM_PTR (CIRCUITPY_BOARD_TFT_RESET ) },
90+ { MP_OBJ_NEW_QSTR (MP_QSTR_TFT_BACKLIGHT ), MP_ROM_PTR (CIRCUITPY_BOARD_TFT_BACKLIGHT ) },
91+ { MP_ROM_QSTR (MP_QSTR_TFT_LITE ), MP_ROM_PTR (CIRCUITPY_BOARD_TFT_BACKLIGHT ) },
92+
9093
9194 { MP_ROM_QSTR (MP_QSTR_WHITE_LED ), MP_ROM_PTR (& pin_GPIO28 ) },
9295
9396 { MP_ROM_QSTR (MP_QSTR_DISPLAY ), MP_ROM_PTR (& displays [0 ].display )},
9497
98+ { MP_ROM_QSTR (MP_QSTR_SPI ), MP_ROM_PTR (& board_spi_obj ) },
9599};
96100MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
0 commit comments