Skip to content

Commit 0b72f71

Browse files
authored
Merge pull request #9280 from bill88t/cardputer_gripes
Add BAT_ADC pin to cardputer
2 parents c296935 + 5928600 commit 0b72f71

File tree

1 file changed

+3
-0
lines changed
  • ports/espressif/boards/m5stack_cardputer

1 file changed

+3
-0
lines changed

ports/espressif/boards/m5stack_cardputer/pins.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
7171
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) },
7272
{ MP_ROM_QSTR(MP_QSTR_BOOT0), MP_ROM_PTR(&pin_GPIO0) },
7373

74+
// Battery
75+
{ MP_ROM_QSTR(MP_QSTR_BAT_ADC), MP_ROM_PTR(&pin_GPIO10) },
76+
7477
// Other
7578
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
7679
{ MP_ROM_QSTR(MP_QSTR_PORTA_I2C), MP_ROM_PTR(&board_i2c_obj) },

0 commit comments

Comments
 (0)