nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ button_pressed()

int button_pressed ( gpio_pin_t  button_pin,
bool *  button_pressed 
)

Check button state.

Parameters
[in]button_pinButton pin
[out]button_pressedButton state. True if currently pressed, false otherwise
Returns
0 if success, an error code otherwise.