Initial commit

This commit is contained in:
2026-06-13 13:37:44 +02:00
commit 1b93e0cf91
14 changed files with 383 additions and 0 deletions

30
main/buttons/buttons.h Normal file
View 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