Skip to content

Commit 662c168

Browse files
authored
renamed to BUTTON0 and BUTTON1 for consistency and not to break code
As mentioned by @RetiredWizard in #8787 (comment) it is best to keep the old descriptors
1 parent 8ca68da commit 662c168

File tree

1 file changed

+2
-2
lines changed
  • ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m

1 file changed

+2
-2
lines changed

ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/pins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
55
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
66

7-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_L), MP_ROM_PTR(&pin_GPIO0) },
7+
{ MP_ROM_QSTR(MP_QSTR_BUTTON0), MP_ROM_PTR(&pin_GPIO0) },
88
{ MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) },
99

10-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_R), MP_ROM_PTR(&pin_GPIO35) },
10+
{ MP_ROM_QSTR(MP_QSTR_BUTTON1), MP_ROM_PTR(&pin_GPIO35) },
1111
{ MP_ROM_QSTR(MP_QSTR_IO35), MP_ROM_PTR(&pin_GPIO35) },
1212

1313
{ MP_ROM_QSTR(MP_QSTR_IO2), MP_ROM_PTR(&pin_GPIO2) },

0 commit comments

Comments
 (0)