8000 Merge pull request #5279 from skieast/add-IO9-ttgo-t8-s2-st7789 · domdfcoding/circuitpython@2c45f94 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c45f94

Browse files
authored
Merge pull request adafruit#5279 from skieast/add-IO9-ttgo-t8-s2-st7789
Add IO9 / VBAT_SENSE to lilygo-t8-s2-st7789
2 parents 9797665 + bec7a62 commit 2c45f94

File tree

1 file changed

+4
-0
lines changed
  • ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789

1 file changed

+4
-0
lines changed

ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/pins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
1313
{ MP_ROM_QSTR(MP_QSTR_IO6), MP_ROM_PTR(&pin_GPIO6) },
1414
{ MP_ROM_QSTR(MP_QSTR_IO7), MP_ROM_PTR(&pin_GPIO7) },
1515
{ MP_ROM_QSTR(MP_QSTR_IO8), MP_ROM_PTR(&pin_GPIO8) },
16+
{ MP_ROM_QSTR(MP_QSTR_IO9), MP_ROM_PTR(&pin_GPIO9) },
1617

1718
{ MP_ROM_QSTR(MP_QSTR_IO11), MP_ROM_PTR(&pin_GPIO11) },
1819
{ MP_ROM_QSTR(MP_QSTR_IO12), MP_ROM_PTR(&pin_GPIO12) },
@@ -54,5 +55,8 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
5455

5556
// Peripheral Power control
5657
{ MP_ROM_QSTR(MP_QSTR_PE_POWER), MP_ROM_PTR(&pin_GPIO14) },
58+
59+
// Battery Sense
60+
{ MP_ROM_QSTR(MP_QSTR_BATTERY), MP_ROM_PTR(&pin_GPIO9) },
5761
};
5862
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);

0 commit comments

Comments
 (0)
0