Initial commit
This commit is contained in:
30
main/buttons/buttons.h
Normal file
30
main/buttons/buttons.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef BUTTONS_H
|
||||
|
||||
#define BUTTONS_H
|
||||
|
||||
typedef enum {
|
||||
FRONT_LIGHT_INCREASE,
|
||||
FRONT_LIGHT_DECREASE,
|
||||
BACK_LIGHT_INCREASE,
|
||||
BACK_LIGHT_DECREASE,
|
||||
CAB_LIGHT,
|
||||
WIPPERS,
|
||||
SANDER,
|
||||
STARTER,
|
||||
CUT,
|
||||
HORN,
|
||||
}buttonAction;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
buttonAction btnAcc;
|
||||
const char* name;
|
||||
char shortcut;
|
||||
int pin;
|
||||
|
||||
}action;
|
||||
|
||||
void button_event_cb(void *arg, void *data);
|
||||
|
||||
void initialize_buttons();
|
||||
#endif // BUTTONS_H
|
||||
Reference in New Issue
Block a user