ev3c_button

A simple method to get the state of the buttons.

Summary
ev3c_buttonA simple method to get the state of the buttons.
Enumerations
ev3_button_identifierThe different buttons types
Functions
ev3_init_buttionInitializes the button functions.
ev3_button_pressedTells you, whether the named button is pressed or not.
ev3_quit_buttonFinishes the work with the buttons.

Enumerations

ev3_button_identifier

The different buttons types

Values

BUTTON_LEFTleft button
BUTTON_RIGHTright button
BUTTON_UPup button
BUTTON_DOWNdown button
BUTTON_CENTERcenter button
BUTTON_BACKback button

Functions

ev3_init_buttion

Initializes the button functions.  Need to be called before using ev3_button_pressed.

ev3_button_pressed

int32_t ev3_button_pressed(enum ev3_button_identifier button)

Tells you, whether the named button is pressed or not.

Parameter

button(ev3_button_identifier) name of the button to check it’s state

Returns

int32_t1 if pressed, 0 if not pressed

ev3_quit_button

void ev3_quit_button()

Finishes the work with the buttons.  Has to be called at the very end of the program

int32_t ev3_button_pressed(enum ev3_button_identifier button)
Tells you, whether the named button is pressed or not.
void ev3_quit_button()
Finishes the work with the buttons.
The different buttons types
Close