Initial commit, getting all the stuff from PlatformIO
This commit is contained in:
32
src/actions.cpp
Normal file
32
src/actions.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "actions.h"
|
||||
#include "main.h"
|
||||
|
||||
extern "C" void action_act_butt_1(lv_event_t *e) {
|
||||
mqtt_send_result('1');
|
||||
}
|
||||
|
||||
extern "C" void action_act_butt_2(lv_event_t *e) {
|
||||
mqtt_send_result('2');
|
||||
}
|
||||
|
||||
extern "C" void action_act_butt_3(lv_event_t *e) {
|
||||
mqtt_send_result('3');
|
||||
}
|
||||
|
||||
extern "C" void action_act_butt_4(lv_event_t *e) {
|
||||
mqtt_send_result('4');
|
||||
}
|
||||
|
||||
extern "C" void action_act_butt_5(lv_event_t *e) {
|
||||
mqtt_send_result('5');
|
||||
}
|
||||
|
||||
extern "C" void action_act_badge(lv_event_t *e) {
|
||||
current_screen = 'B';
|
||||
screenNeedsUpdate = true;
|
||||
}
|
||||
|
||||
extern "C" void action_act_processor(lv_event_t *e) {
|
||||
current_screen = 'H';
|
||||
screenNeedsUpdate = true;
|
||||
}
|
||||
Reference in New Issue
Block a user