Skip to content

Commit bcf27e1

Browse files
committed
fix build break and add io 20/21
1 parent dc1c867 commit bcf27e1

File tree

1 file changed

+5
-3
lines changed
  • ports/espressif/boards/lolin_c3_mini

1 file changed

+5
-3
lines changed

ports/espressif/boards/lolin_c3_mini/pins.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
3131
{ MP_ROM_QSTR(MP_QSTR_IO8), MP_ROM_PTR(&pin_GPIO8) }, // 14: GPIO8
3232
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO8) }, // mpboardconfig.h
3333
{ MP_ROM_QSTR(MP_QSTR_IO9), MP_ROM_PTR(&pin_GPIO9) }, // 15: GPIO9
34-
{ MP_ROM_QSTR(MP_QSTR_IO20), MP_ROM_PTR(&pin_GPIO20) }, // 16: GPIO10/FSPICS0
34+
{ MP_ROM_QSTR(MP_QSTR_IO10), MP_ROM_PTR(&pin_GPIO10) }, // 16: GPIO10/FSPICS0
3535
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO10) }, // mpboardconfig.h
36-
// 17: VDD3P3_SPI
36+
// 17: VDD3P3_CPJ
3737
// 18: VDD_SPI
3838
// 19: SPIHD
3939
// 20: SPIWP
@@ -44,7 +44,9 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4444
// Used for USB 25: GPIO18/D-
4545
// Used for USB 26: GPIO19/D+
4646
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO20) }, // 27: GPIO20/U0RXD
47-
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO22) }, // 28: FPIO22/U0TXD
47+
{ MP_ROM_QSTR(MP_QSTR_IO20), MP_ROM_PTR(&pin_GPIO20) },
48+
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO21) }, // 28: GPIO21/U0TXD
49+
{ MP_ROM_QSTR(MP_QSTR_IO21), MP_ROM_PTR(&pin_GPIO21) },
4850
// 29: XTAL_N
4951
// 30: XTAL_P
5052
// 31: VDDA

0 commit comments

Comments
 (0)