Skip to content

Commit d945d8b

Browse files
authored
Merge pull request #7988 from Neradoc/add-feather-rp2040-button-pin
Add the Feather RP2040 boot button to the board module ?
2 parents b6a4d2e + 16c8c9a commit d945d8b

File tree

1 file changed

+4
-1
lines changed
  • ports/raspberrypi/boards/adafruit_feather_rp2040

1 file changed

+4
-1
lines changed

ports/raspberrypi/boards/adafruit_feather_rp2040/pins.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2626
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_GPIO10) },
2727
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_GPIO11) },
2828
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_GPIO12) },
29-
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_GPIO13) },
3029
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO13) },
30+
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_GPIO13) },
31+
32+
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO4) },
33+
{ MP_ROM_QSTR(MP_QSTR_BOOT), MP_ROM_PTR(&pin_GPIO4) },
3134

3235
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO16) },
3336

0 commit comments

Comments
 (0)