device-epd/include/display.h

24 lines
569 B
C
Raw Normal View History

2020-02-10 14:29:39 +00:00
#ifndef DISPLAY_H
#define DISPLAY_H
2020-03-14 08:35:56 +00:00
//#include "EPD2_BW.h"
2020-02-10 14:29:39 +00:00
#include <GxEPD2_BW.h>
#include <Fonts/FreeMonoBold9pt7b.h>
//#define ENABLE_GxEPD2_GFX 0
extern GxEPD2_BW<GxEPD2_750, GxEPD2_750::HEIGHT> display;
//extern GxEPD2_BW<GxEPD2_750, GxEPD2_750::HEIGHT> display(GxEPD2_750(/*CS=*/5, /*DC=*/17, /*RST=*/16, /*BUSY=*/4));
//GxEPD2_BW<GxEPD2_750, GxEPD2_750::HEIGHT> displayGet();
2020-02-10 14:29:39 +00:00
void setupDisplay();
2020-02-16 16:05:44 +00:00
void displayOpen();
void displayWritePixel(int16_t x, int16_t y, uint16_t color);
void displayWriteFramebuffer(uint8_t bitmap[]);
2020-02-10 14:29:39 +00:00
2020-02-16 16:05:44 +00:00
void displayFlush();
2020-02-10 14:29:39 +00:00
#endif