A simple method to get the state of the buttons.
ev3c_button | A simple method to get the state of the buttons. |
Enumerations | |
ev3_button_identifier | The different buttons types |
Functions | |
ev3_init_buttion | Initializes the button functions. |
ev3_button_pressed | Tells you, whether the named button is pressed or not. |
ev3_quit_button | Finishes the work with the buttons. |
Initializes the button functions. Need to be called before using ev3_button_pressed.
int32_t ev3_button_pressed( enum ev3_button_identifier button )
Tells you, whether the named button is pressed or not.
button | (ev3_button_identifier) name of the button to check it’s state |
int32_t | 1 if pressed, 0 if not pressed |
Tells you, whether the named button is pressed or not.
int32_t ev3_button_pressed( enum ev3_button_identifier button )
Finishes the work with the buttons.
void ev3_quit_button()