27 lines
410 B
C++
27 lines
410 B
C++
#ifndef DISPLAY_MANAGER_H
|
|
#define DISPLAY_MANAGER_H
|
|
|
|
#include <LiquidCrystal_I2C.h>
|
|
#include <Arduino.h>
|
|
|
|
class DisplayManager {
|
|
private:
|
|
LiquidCrystal_I2C lcd;
|
|
|
|
unsigned long lastUpdate;
|
|
const unsigned long interval = 1000;
|
|
|
|
String lastLine1;
|
|
String lastLine2;
|
|
|
|
public:
|
|
DisplayManager();
|
|
|
|
void begin();
|
|
|
|
bool ready(unsigned long now);
|
|
|
|
void showText(String line1, String line2);
|
|
};
|
|
|
|
#endif |