#include <inttypes.h>
#include <avr/io.h>
#include <avr/eeprom.h>
#include <avr/signal.h>
#include "main.h"
Functions | |
void | input_init (void) |
initialises the input | |
void | input_refresh (void) |
refreshes the input |
Handles the button events.
12 Octobre 2005
Sven Kreiss
|
initialises the input
00030 { 00031 taste[0] = &menu_main_incr; 00032 taste[1] = &menu_start; 00033 taste[2] = &menu_left; 00034 taste[3] = &menu_up; 00035 taste[4] = &menu_down; 00036 taste[5] = &menu_right; 00037 taste[6] = &voidfunc; 00038 taste[7] = &voidfunc; 00039 taste_long[0] = &switch_off; 00040 taste_long[1] = &voidfunc; 00041 taste_long[2] = &voidfunc; 00042 taste_long[3] = &voidfunc; 00043 taste_long[4] = &voidfunc; 00044 taste_long[5] = &voidfunc; 00045 taste_long[6] = &voidfunc; 00046 taste_long[7] = &voidfunc; 00047 }
|
|
refreshes the input this function needs to be called regularly in order to register all button events.
00054 { 00055 tasten_status(); 00056 }
|