Complete rewrite of Application
This commit is contained in:
27
DisplayManager.h
Normal file
27
DisplayManager.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user