Skip to content

Commit 0f05090

Browse files
authored
Merge pull request #9246 from dhalbert/nrf-feather-neopixel-power
Feather nRF52840 Rev E: NEOPIXEL_POWER pin
2 parents ca2a24e + 2a8b335 commit 0f05090

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/nordic/boards/feather_nrf52840_express/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
#define MICROPY_HW_MCU_NAME "nRF52840"
3232

3333
#define MICROPY_HW_NEOPIXEL (&pin_P0_16)
34+
// power control available only on Rev E and later.
35+
#define CIRCUITPY_STATUS_LED_POWER (&pin_P1_14)
36+
3437

3538
#define MICROPY_HW_LED_STATUS (&pin_P1_15)
3639

ports/nordic/boards/feather_nrf52840_express/pins.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
3030
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_P1_09) },
3131

3232
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_P0_16) },
33+
// NEOPIXEL_POWER only works on Rev E and later.
34+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL_POWER), MP_ROM_PTR(&pin_P1_14) },
3335

3436
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_P0_14) },
3537
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_P0_13) },

0 commit comments

Comments
 (0)