// // Created by MightyPork on 2023/04/09. // #include #include #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: // TODO 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); }