1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-06-29 10:35:08 +02:00
doorlockd-mirror/doorlockd/epaper.h
2015-09-25 00:50:07 +02: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