Skip to content

Commit 09a2b49

Browse files
committed
Fix M5Stack CoreS3 display bus definition
1 parent 92d9e89 commit 09a2b49

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ports/espressif/boards/m5stack_cores3/mpconfigboard.h

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

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

2225
#define DEFAULT_UART_BUS_RX (&pin_GPIO18)
2326
#define DEFAULT_UART_BUS_TX (&pin_GPIO17)

0 commit comments

Comments
 (0)