Skip to content

Commit 6cf7e45

Browse files
authored
Merge pull request #8037 from jpconstantineau/fix-PCA10100
fix to make buttons and leds compatible with pca10056
2 parents 5d39414 + 6fd700e commit 6cf7e45

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ports/nrf/boards/pca10100/mpconfigboard.h

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

3333
#define MICROPY_HW_LED_STATUS (&pin_P0_13)
34-
#define MICROPY_HW_LED_TX (&pin_P0_14)
35-
#define MICROPY_HW_LED_RX (&pin_P0_15)
3634

3735
#define CIRCUITPY_INTERNAL_NVM_SIZE 0
3836
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (60 * 1024)

ports/nrf/boards/pca10100/pins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4545
{ MP_ROM_QSTR(MP_QSTR_LED3), MP_ROM_PTR(&pin_P0_15) },
4646
{ MP_ROM_QSTR(MP_QSTR_LED4), MP_ROM_PTR(&pin_P0_16) },
4747

48+
{ MP_ROM_QSTR(MP_QSTR_BUTTON1), MP_ROM_PTR(&pin_P0_11) },
4849
{ MP_ROM_QSTR(MP_QSTR_BUTTON1_DEFAULT), MP_ROM_PTR(&pin_P0_11) },
4950
{ MP_ROM_QSTR(MP_QSTR_BUTTON1_OPTIONAL), MP_ROM_PTR(&pin_P1_07) },
51+
52+
{ MP_ROM_QSTR(MP_QSTR_BUTTON2), MP_ROM_PTR(&pin_P0_12) },
5053
{ MP_ROM_QSTR(MP_QSTR_BUTTON2_DEFAULT), MP_ROM_PTR(&pin_P0_12) },
5154
{ MP_ROM_QSTR(MP_QSTR_BUTTON2_OPTIONAL), MP_ROM_PTR(&pin_P1_08) },
55+
5256
{ MP_ROM_QSTR(MP_QSTR_BUTTON3), MP_ROM_PTR(&pin_P0_24) },
5357
{ MP_ROM_QSTR(MP_QSTR_BUTTON4), MP_ROM_PTR(&pin_P0_25) },
5458
};

0 commit comments

Comments
 (0)