mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-01 06:57:04 +01:00
32 lines
452 B
C++
32 lines
452 B
C++
#ifndef EPAPER_H
|
|
#define EPAPER_H
|
|
|
|
#include <string>
|
|
#include <array>
|
|
|
|
#include "logger.h"
|
|
|
|
class Epaper {
|
|
public:
|
|
|
|
constexpr static int HEIGHT = 176; // In Pixel
|
|
constexpr static int WIDTH = 33; // In Byte
|
|
|
|
constexpr static int ARRAY_SIZE = HEIGHT * WIDTH;
|
|
|
|
static Epaper &get();
|
|
~Epaper();
|
|
|
|
void draw(const std::string &uri);
|
|
|
|
private:
|
|
|
|
Epaper();
|
|
|
|
uint8_t _prevImg[ARRAY_SIZE];
|
|
|
|
const Logger &_logger;
|
|
};
|
|
|
|
#endif
|