Skip to content

Commit c48bb75

Browse files
committed
waveshare_esp32_s3_geek: don't init board SPI for the display
1 parent a0b482c commit c48bb75

File tree

1 file changed

+4
-4
lines changed
  • ports/espressif/boards/waveshare_esp32_s3_geek

1 file changed

+4
-4
lines changed

ports/espressif/boards/waveshare_esp32_s3_geek/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ uint8_t display_init_sequence[] = {
3030
};
3131

3232
static void display_init(void) {
33-
34-
busio_spi_obj_t *spi = common_hal_board_create_spi(0);
3533
fourwire_fourwire_obj_t *bus = &allocate_display_bus()->fourwire_bus;
34+
busio_spi_obj_t *spi = &bus->inline_bus;
3635

3736
common_hal_busio_spi_construct(
3837
spi,
3938
&pin_GPIO12, // CLK
4039
&pin_GPIO11, // MOSI
4140
NULL, // MISO not connected
42-
false); // Not half-duplex
43-
41+
false // Not half-duplex
42+
);
43+
common_hal_busio_spi_never_reset(spi);
4444

4545
bus->base.type = &fourwire_fourwire_type;
4646

0 commit comments

Comments
 (0)