Go to the documentation of this file.
17 items.push_back(item);
28 if (
items.size() == 0)
48 const String LCDController::getLogID()
const {
return "[LCD]"; }
50 const String LCDController::getLogDescription()
const {
52 if (
items.size() == 0)
60 return "[" + content +
"]";
LiquidCrystal_I2C lcd
0x27 - address of the [20x4] LCD on I2C
int isActive()
Returns information if the period of time has passed.
#define LCD_ROWS
number of rows on the LCD display
void addItem(IDisplayable *item)
Adds another source of data for the LCD display (another class)
TimePeriod delay
delay between displaying two pages
static LCDController * instance
the instance of the class
void update() override
Updates the state of the class.
static LCDController * getInstance()
Returns the instance of the class.
LCDController()
Constructor of the class.
int index
index of the current page
std::vector< IDisplayable * > items
collection of classes implementing the interface IDisplayable