Contiki 2.5
|
This file provides joystick operations.More...
Go to the source code of this file.
Functions | |
void | key_init (void) |
This will intialize the joystick and the ADC for button readings. | |
void | key_deinit (void) |
This will disable the ADC used for button readings. | |
uint8_t | is_button (void) |
This will poll run key_task() to determine if a button has been pressed. More... | |
uint8_t | get_button (void) |
This function will wait for a user to press a button. More... | |
key_state_t | key_task (void) |
This will check the joystick state to return the current button status. More... | |
key_state_t | key_state_get (void) |
This function will start the ADC conversion and read the current converstion value to determine the button position. More... | |