File DisplayManager.hpp
File List > e-paper-board > src > DisplayManager.hpp
Go to the documentation of this file.
#pragma once
#include "Board_TTGO_Tdisplay.hpp"
#include <string>
#include <Adafruit_I2CDevice.h>
#include <GxEPD.h>
#include <GxGDEW027C44/GxGDEW027C44.h> // 2.7" b/w/r form GoodDisplay
#include <GxIO/GxIO.h>
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include "fontsCz/FreeSans9pt8bfr.h"
class DisplayManager {
private:
GxIO_Class* io;
public:
GxEPD_Class* display;
DisplayManager();
void init();
void test();
// void prepareDisplay();
void prepareDisplay(const GFXfont* f = &FreeSans9pt8b, uint16_t fillScreenColor = GxEPD_BG, uint16_t textColor = GxEPD_TEXT);
void showError(std::string errorMsg);
void wifiConnectInfo(std::string ssid, std::string password);
};