Files
TrainThing/main/buttons/buttons.h
2026-06-13 14:11:25 +02:00

29 lines
446 B
C

#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