Skip to content

Commit 3bf4b42

Browse files
committed
change OH20 badge pin defs to use SWn for buttons
Rather than use A, B, C and D Use the buttons according to silkscreen references: SW1 SW2 SW3 SW4
1 parent 0a54f88 commit 3bf4b42

File tree

1 file changed

+4
-4
lines changed
  • ports/nrf/boards/ohs2020_badge

1 file changed

+4
-4
lines changed

ports/nrf/boards/ohs2020_badge/pins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2020

2121
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display) },
2222

23-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_A), MP_ROM_PTR(&pin_P0_29) },
24-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_B), MP_ROM_PTR(&pin_P0_03) },
25-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_C), MP_ROM_PTR(&pin_P0_17) },
26-
{ MP_ROM_QSTR(MP_QSTR_BUTTON_D), MP_ROM_PTR(&pin_P1_03) },
23+
{ MP_ROM_QSTR(MP_QSTR_BUTTON_SW1), MP_ROM_PTR(&pin_P0_29) },
24+
{ MP_ROM_QSTR(MP_QSTR_BUTTON_SW2), MP_ROM_PTR(&pin_P0_03) },
25+
{ MP_ROM_QSTR(MP_QSTR_BUTTON_SW3), MP_ROM_PTR(&pin_P0_17) },
26+
{ MP_ROM_QSTR(MP_QSTR_BUTTON_SW4), MP_ROM_PTR(&pin_P1_03) },
2727
};
2828

2929
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)