moved print function to base class
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @file menuControl.cpp
|
||||
* @author Alexander Klein (alex@kleiax.de)
|
||||
* @brief
|
||||
* @version 0.1
|
||||
* @date 2022-12-28
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
|
||||
#include "menuControl.h"
|
||||
|
||||
void MenuControl::print(String lineOne, String lineTwo) const {
|
||||
if (this->lcd) {
|
||||
lcd->clear();
|
||||
lcd->setCursor(0, 0);
|
||||
lcd->printf(lineOne.c_str());
|
||||
lcd->setCursor(0, 1);
|
||||
lcd->printf(lineTwo.c_str());
|
||||
}
|
||||
|
||||
std::cout << lineOne.c_str() << " " << lineTwo.c_str() << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user