Skip to content

Commit 937462d

Browse files
authored
Merge pull request adafruit#3616 from ladyada/main
add light sensor, move batt monitor
2 parents 7cbc509 + 25bad66 commit 937462d

File tree

1 file changed

+4
-2
lines changed
  • ports/esp32s2/boards/adafruit_esp32s2_eink_portal

1 file changed

+4
-2
lines changed

ports/esp32s2/boards/adafruit_esp32s2_eink_portal/pins.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
1818
{ MP_ROM_QSTR(MP_QSTR_BUTTON_C), MP_ROM_PTR(&pin_GPIO12) },
1919
{ MP_ROM_QSTR(MP_QSTR_BUTTON_D), MP_ROM_PTR(&pin_GPIO11) },
2020

21-
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_MONITOR), MP_ROM_PTR(&pin_GPIO2) },
22-
{ MP_ROM_QSTR(MP_QSTR_BATTERY), MP_ROM_PTR(&pin_GPIO2) },
21+
{ MP_ROM_QSTR(MP_QSTR_LIGHT), MP_ROM_PTR(&pin_GPIO3) },
22+
23+
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_MONITOR), MP_ROM_PTR(&pin_GPIO4) },
24+
{ MP_ROM_QSTR(MP_QSTR_BATTERY), MP_ROM_PTR(&pin_GPIO4) },
2325

2426
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO33) },
2527
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO34) },

0 commit comments

Comments
 (0)