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
@@ -0,0 +1,34 @@
/**
* @file menuSysteminformatio.cpp
* @author Alexander Klein (alex@kleiax.de)
* @brief Contains an implementation of the class MenuSysteminformation
* @version 0.1
* @date 2022-12-27
*
* @copyright Copyright (c) 2022
*
*/
#include "menuSysteminformation.h"
void MenuSysteminformation::printPage() const {
String lineOne = "";
String lineTwo = "";
switch (this->getCurrentPage()) {
case 0:
lineOne = "Free Heap:";
lineTwo.concat(ESP.getFreeHeap());
break;
case 1:
lineOne = "Uptime in secs:";
lineTwo.concat((millis() / 1000));
break;
default:
this->printDefault();
return;
}
this->print(lineOne, lineTwo);
}