moved print function to base class

This commit is contained in:
2022-12-28 10:20:48 +01:00
parent c9ddadc15b
commit 9d5cc92a80
4 changed files with 27 additions and 14 deletions
+3 -1
View File
@@ -18,7 +18,7 @@
/**
* @brief Baseclass to build Menus
*
* This class must be inherited by other classes which want to be
* This class have to be inherited by other classes which want to be
* act as a menu, because the menu structure uses polymorphism.
*
*/
@@ -69,6 +69,8 @@ class MenuControl {
void setLcd(LiquidCrystal_I2C* lcd) { this->lcd = lcd; }
protected:
void print(String lineOne, String lineTwo) const;
MenuControl* parentMenu = nullptr;
LiquidCrystal_I2C* lcd = nullptr;
};