/** * @file menuAkku.h * @author Alexander Klein (alex@kleiax.de) * @brief Contains a Menu class to show battery pack informations * @version 0.1 * @date 2022-02-05 * * @copyright Copyright (c) 2022 * */ #ifndef MENU_AKKU_H #define MENU_AKKU_H #include #include "menuControl.h" #include "battery.h" /** * @brief This class shows battery informations * * Provide information for main battery pack and * PS3-Controller battery pack * */ class MenuAkku : public MenuControl { public: /** * @brief Construct a new Menu Akku object * */ MenuAkku(Battery* mainBattery); void down() override {} void up() override {} void right() override; void left() override; void no() override; void yes() override; /** * @brief Prints the Information to display and console * * The informations are only printed to the display if it * set. */ void printMenu() override; /** * @brief Renew the informations and print them * */ void update() override; private: const uint16_t delay = 15000; uint32_t last_millis = 0; Battery* mainBattery; }; #endif // MENU_AKKU_H