![]() |
roneos
Operating System for the r-one robot
|
Functions for 3 buttons on the top of the robot (R,G,B) that can be programmed by the user. More...
Go to the source code of this file.
Functions | |
void | buttonsInit (void) |
Initializes the buttons. More... | |
uint32 | buttonsGet (uint32 button) |
Gets the state of the specified button. More... | |
void | buttonsBuildMessage (uint8 *msg) |
Build a message containing the states of each button. More... | |
Functions for 3 buttons on the top of the robot (R,G,B) that can be programmed by the user.
void buttonsBuildMessage | ( | uint8 * | msg) |
Build a message containing the states of each button.
3 bits of message used. Blue, green, red.
msg | the address where the message is placed |
uint32 buttonsGet | ( | uint32 | button) |
Gets the state of the specified button.
Tells you whether the specified button is on or off
button | specifies which button to check (BUTTON_RED, BUTTON_BLUE, or BUTTON_GREEN) |
void buttonsInit | ( | void | ) |
Initializes the buttons.
Initializes the red, green, and blue buttons as input.