Skip to content

Commit 54bd79a

Browse files
author
m4tk
committed
LCD_MISO is not connected on board
1 parent ff7b296 commit 54bd79a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void display_init(void) {
7171
spi,
7272
&pin_GPIO36, // CLK
7373
&pin_GPIO35, // MOSI
74-
&pin_GPIO4 // MISO
74+
NULL // MISO not connected
7575
);
7676

7777
common_hal_busio_spi_never_reset(spi);

ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
66
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },
77
{ MP_ROM_QSTR(MP_QSTR_IO2), MP_ROM_PTR(&pin_GPIO2) },
88
{ MP_ROM_QSTR(MP_QSTR_IO3), MP_ROM_PTR(&pin_GPIO3) },
9+
{ MP_ROM_QSTR(MP_QSTR_IO4), MP_ROM_PTR(&pin_GPIO4) },
910
{ MP_ROM_QSTR(MP_QSTR_IO5), MP_ROM_PTR(&pin_GPIO5) },
1011
{ MP_ROM_QSTR(MP_QSTR_IO6), MP_ROM_PTR(&pin_GPIO6) },
1112
{ MP_ROM_QSTR(MP_QSTR_IO7), MP_ROM_PTR(&pin_GPIO7) },
@@ -41,7 +42,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
4142
{ MP_ROM_QSTR(MP_QSTR_SD_CS), MP_ROM_PTR(&pin_GPIO10) },
4243

4344
// 1.14 inch LCD ST7789
44-
{ MP_ROM_QSTR(MP_QSTR_LCD_MISO), MP_ROM_PTR(&pin_GPIO4) },
4545
{ MP_ROM_QSTR(MP_QSTR_LCD_MOSI), MP_ROM_PTR(&pin_GPIO35) },
4646
{ MP_ROM_QSTR(MP_QSTR_LCD_CLK), MP_ROM_PTR(&pin_GPIO36) },
4747
{ MP_ROM_QSTR(MP_QSTR_LCD_CS), MP_ROM_PTR(&pin_GPIO34) },

0 commit comments

Comments
 (0)