55// SPDX-License-Identifier: MIT
66
77#include "shared-bindings/board/__init__.h"
8-
98#include "shared-module/displayio/__init__.h"
9+
10+ CIRCUITPY_BOARD_BUS_SINGLETON (sd_spi , spi , 1 )
1011static const mp_rom_map_elem_t board_module_globals_table [] = {
1112 CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
1213
@@ -64,11 +65,11 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
6465 { MP_ROM_QSTR (MP_QSTR_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
6566
6667 // SD Card
67- { MP_ROM_QSTR (MP_QSTR_SD_SCK ), MP_ROM_PTR (& pin_GPIO36 )},
68- { MP_ROM_QSTR (MP_QSTR_SD_MOSI ), MP_ROM_PTR (& pin_GPIO35 )},
69- { MP_ROM_QSTR (MP_QSTR_SD_MISO ), MP_ROM_PTR (& pin_GPIO37 )},
70- { MP_ROM_QSTR (MP_QSTR_SD_CS ), MP_ROM_PTR (& pin_GPIO34 )},
71- { MP_ROM_QSTR (MP_QSTR_SD_SPI ), MP_ROM_PTR (& board_spi_obj ) },
68+ { MP_ROM_QSTR (MP_QSTR_SD_SCK ), MP_ROM_PTR (& pin_GPIO36 ) },
69+ { MP_ROM_QSTR (MP_QSTR_SD_MOSI ), MP_ROM_PTR (& pin_GPIO35 ) },
70+ { MP_ROM_QSTR (MP_QSTR_SD_MISO ), MP_ROM_PTR (& pin_GPIO37 ) },
71+ { MP_ROM_QSTR (MP_QSTR_SD_CS ), MP_ROM_PTR (& pin_GPIO34 ) },
72+ { MP_ROM_QSTR (MP_QSTR_SD_SPI ), MP_ROM_PTR (& board_sd_spi_obj ) },
7273 // Pin 38 is for the SDIO interface, and therefore not included in the SPI object
7374
7475 // LCD
@@ -78,6 +79,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
7879 { MP_ROM_QSTR (MP_QSTR_LCD_RST ), MP_ROM_PTR (& pin_GPIO9 ) },
7980 { MP_ROM_QSTR (MP_QSTR_LCD_BACKLIGHT ), MP_ROM_PTR (& pin_GPIO7 ) },
8081 { MP_ROM_QSTR (MP_QSTR_LCD_DC ), MP_ROM_PTR (& pin_GPIO8 ) },
82+ { MP_ROM_QSTR (MP_QSTR_LCD_SPI ), MP_ROM_PTR (& board_spi_obj ) },
8183 { MP_ROM_QSTR (MP_QSTR_DISPLAY ), MP_ROM_PTR (& displays [0 ].display ) },
8284
8385};
0 commit comments