25 lines
453 B
C++
25 lines
453 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#include <LiquidCrystal_I2C.h>
|
|
#include "constants.hpp"
|
|
#include "menu.hpp"
|
|
#include "pet.hpp"
|
|
|
|
/*
|
|
* A helper class to facilitate drawing on a HD44780 LCD display.
|
|
*/
|
|
class Display {
|
|
public:
|
|
Display();
|
|
|
|
void begin();
|
|
void clear();
|
|
void drawPet(Pet& pet);
|
|
void drawBuffer(String buffer[]);
|
|
void drawMenu(Menu& menu);
|
|
|
|
LiquidCrystal_I2C& getLCD();
|
|
private:
|
|
LiquidCrystal_I2C lcd;
|
|
};
|