We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6945a commit 5b2e839Copy full SHA for 5b2e839
ports/raspberrypi/boards/pimoroni_badger2350/pins.c
@@ -122,7 +122,13 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
122
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].epaper_display)},
123
124
// button-state on reset
125
+ // Use `board.RESET_STATE()` to query the state of all buttons at reset.
126
+ // To detect individual key-presses, `board.ON_RESET_PRESSED()`
127
+ // is simpler.
128
{ MP_ROM_QSTR(MP_QSTR_RESET_STATE), (mp_obj_t)&get_reset_state_obj },
129
+
130
+ // Use `board.ON_RESET_PRESSED(board.SW_A)` to check if `SW_A` was pressed
131
+ // during reset.
132
{ MP_ROM_QSTR(MP_QSTR_ON_RESET_PRESSED), (mp_obj_t)&on_reset_pressed_obj },
133
134
};
0 commit comments