Skip to content

Commit d532aaf

Browse files
committed
expose both SPI bus on board
1 parent 644b3b3 commit d532aaf

File tree

1 file changed

+2
-1
lines changed
  • ports/espressif/boards/m5stack_cardputer

1 file changed

+2
-1
lines changed

ports/espressif/boards/m5stack_cardputer/pins.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
6666
// Other
6767
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
6868
{ MP_ROM_QSTR(MP_QSTR_PORTA_I2C), MP_ROM_PTR(&board_i2c_obj) },
69-
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
69+
{ MP_ROM_QSTR(MP_QSTR_TFT_SPI), MP_ROM_PTR(&board_spi_obj) },
70+
{ MP_ROM_QSTR(MP_QSTR_SD_SPI), MP_ROM_PTR(&board_sd_spi_obj) },
7071

7172
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)}
7273
};

0 commit comments

Comments
 (0)