32 lines
673 B
C++
32 lines
673 B
C++
|
|
#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;
|
||
|
|
}
|