Skip to content

Commit 53c3273

Browse files
committed
Fix M5Stack CoreS3 SE display bus definition
1 parent 09a2b49 commit 53c3273

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ports/espressif/boards/m5stack_cores3_se/mpconfigboard.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO36)
2121
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO37)
22-
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO35)
22+
// GPIO35 is shared between the TF card MISO and the TFT D/C signal. The display
23+
// claims it as D/C during board_init(), so board.SPI() must not also claim it.
24+
#define CIRCUITPY_BOARD_SPI (1)
25+
#define CIRCUITPY_BOARD_SPI_PIN {{.clock = DEFAULT_SPI_BUS_SCK, .mosi = DEFAULT_SPI_BUS_MOSI, .miso = NULL}}
2326

2427
#define DEFAULT_UART_BUS_RX (&pin_GPIO18)
2528
#define DEFAULT_UART_BUS_TX (&pin_GPIO17)

0 commit comments

Comments
 (0)