1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-09-18 20:24:11 +02:00
doorlockd-mirror/doorlockd/epaper.h

32 lines
452 B
C
Raw Normal View History

2015-05-11 00:18:22 +02:00
#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