1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-10-31 22:47:05 +01:00
doorlockd-mirror/epaper.h
2015-05-10 22:18:22 +00:00

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