added menu for systeminformation

This commit is contained in:
2022-12-27 16:58:48 +01:00
parent 9a5459b30a
commit 4b5f909765
3 changed files with 66 additions and 0 deletions
+5
View File
@@ -42,6 +42,7 @@
#include "SpecialMenus/PID/menuPidSettings.h"
#include "SpecialMenus/GPS/menuGPS.h"
#include "SpecialMenus/Akku/menuAkku.h"
#include "SpecialMenus/Systeminformation/menuSysteminformation.h"
MoveControl moveController;
DriveManager* driveManager;
@@ -281,6 +282,7 @@ void makeMenu() {
MenuTestMode* test_m = new MenuTestMode(driveManager);
MenuGPS* gps_m = new MenuGPS(driveManager);
MenuAkku* akku_m = new MenuAkku(mainBattery, gamepad);
MenuSysteminformation* sys_m = new MenuSysteminformation();
// Set Menus on LCD
main_m->setLcd(lcd);
@@ -294,6 +296,7 @@ void makeMenu() {
test_m->setLcd(lcd);
gps_m->setLcd(lcd);
akku_m->setLcd(lcd);
sys_m->setLcd(lcd);
// Entry for the main menu
@@ -303,10 +306,12 @@ void makeMenu() {
MenuAction* restart_e = new MenuAction("Restart", restart);
MenuAction* akku_e = new MenuAction("Battery", akku_m);
MenuAction* contr_e = new MenuAction("Remove PS3", disconnectController);
MenuAction* sys_e = new MenuAction("Systeminfo", sys_m);
main_m->addEntry(mode_e);
main_m->addEntry(gps_e);
main_m->addEntry(pid_e);
main_m->addEntry(akku_e);
main_m->addEntry(sys_e);
main_m->addEntry(contr_e);
main_m->addEntry(restart_e);