Contiki 2.5
Functions
key.c File Reference

 This file provides joystick operations.
More...

#include "key.h"
#include "uart.h"
#include "main.h"
#include "adc.h"

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...
 

Detailed Description

 This file provides joystick operations.

Combined with ADC functions.

Author
Mike Vidales mavid.nosp@m.a404.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file key.c.