You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
720 B
38 lines
720 B
//
|
|
// Created by MightyPork on 2023/04/09.
|
|
//
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
#include "app_gui.h"
|
|
#include "app_heater.h"
|
|
#include "screen_menu.h"
|
|
|
|
|
|
static const char* main_menu_opts[] = {
|
|
"Ruční režim",
|
|
"Kalibrace",
|
|
// "Programy",
|
|
// "Diagnostika",
|
|
NULL
|
|
};
|
|
|
|
static void main_menu_cb(int opt) {
|
|
switch (opt) {
|
|
case 0:
|
|
switch_screen(screen_manual, true);
|
|
break;
|
|
case 1:
|
|
switch_screen(screen_calibration, true);
|
|
break;
|
|
}
|
|
}
|
|
|
|
void screen_home(GuiEvent event)
|
|
{
|
|
if (event == GUI_EVENT_SCREEN_INIT) {
|
|
app_heater_enable(false);
|
|
}
|
|
|
|
screen_menu(event, main_menu_opts, main_menu_cb);
|
|
}
|
|
|