Function rc_button_wait_for_event#
Defined in File button.h
Function Documentation#
-
int rc_button_wait_for_event(int chip, int pin, int press_or_release)#
blocking function call, returns when press or release happens
- Parameters:
chip – [in] The gpio chip
pin – [in] The gpio pin for that chip
press_or_release – [in] RC_BTN_STATE_PRESSED or RC_BTN_STATE_RELEASED
- Returns:
0 on successful event, -1 on error