19#define GxEPD2_GFX_ROOT_CLASS GFX
21#include <Adafruit_GFX.h>
22#define GxEPD2_GFX_ROOT_CLASS Adafruit_GFX
34 virtual void init(uint32_t serial_diag_bitrate = 0) = 0;
40 virtual void init(uint32_t serial_diag_bitrate,
bool initial, uint16_t reset_duration = 20,
bool pulldown_rst_mode =
false) = 0;
43 virtual void display(
bool partial_update_mode =
false) = 0;
50 virtual void displayWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h) = 0;
60 virtual void drawPaged(
void (*drawCallback)(
const void*),
const void* pv) = 0;
61 virtual void drawInvertedBitmap(int16_t x, int16_t y,
const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color) = 0;
66 virtual void writeImage(
const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
67 virtual void writeImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
68 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
69 virtual void writeImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert,
bool mirror_y,
bool pgm) = 0;
70 virtual void writeImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h) = 0;
71 virtual void writeImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
72 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert,
bool mirror_y,
bool pgm) = 0;
73 virtual void writeImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
74 int16_t x, int16_t y, int16_t w, int16_t h) = 0;
76 virtual void writeNative(
const uint8_t* data1,
const uint8_t* data2, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
78 virtual void drawImage(
const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
79 virtual void drawImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
80 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
81 virtual void drawImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert,
bool mirror_y,
bool pgm) = 0;
82 virtual void drawImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h) = 0;
83 virtual void drawImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
84 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert,
bool mirror_y,
bool pgm) = 0;
85 virtual void drawImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
86 int16_t x, int16_t y, int16_t w, int16_t h) = 0;
88 virtual void drawNative(
const uint8_t* data1,
const uint8_t* data2, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false) = 0;
89 virtual void refresh(
bool partial_update_mode =
false) = 0;
90 virtual void refresh(int16_t x, int16_t y, int16_t w, int16_t h) = 0;
virtual void drawImagePart(const uint8_t *black, const uint8_t *color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h)=0
virtual void init(uint32_t serial_diag_bitrate=0)=0
virtual void drawPaged(void(*drawCallback)(const void *), const void *pv)=0
virtual void fillScreen(uint16_t color)=0
virtual void writeNative(const uint8_t *data1, const uint8_t *data2, int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual void drawImage(const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)=0
virtual void hibernate()=0
virtual void clearScreen(uint8_t value=0xFF)=0
virtual void firstPage()=0
virtual void drawImagePart(const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual void writeImagePart(const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual void drawImagePart(const uint8_t *black, const uint8_t *color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)=0
virtual bool nextPage()=0
virtual uint16_t pages()=0
virtual void refresh(int16_t x, int16_t y, int16_t w, int16_t h)=0
virtual void writeImagePart(const uint8_t *black, const uint8_t *color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)=0
virtual void writeImage(const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual void setPartialWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)=0
virtual void writeImage(const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h)=0
virtual void drawImage(const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual void writeScreenBuffer(uint8_t value=0xFF)=0
virtual void drawImage(const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h)=0
virtual void display(bool partial_update_mode=false)=0
virtual void init(uint32_t serial_diag_bitrate, bool initial, uint16_t reset_duration=20, bool pulldown_rst_mode=false)=0
virtual void writeImagePart(const uint8_t *black, const uint8_t *color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap, int16_t x, int16_t y, int16_t w, int16_t h)=0
virtual void drawInvertedBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)=0
virtual void writeImage(const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)=0
virtual void powerOff()=0
virtual void drawNative(const uint8_t *data1, const uint8_t *data2, int16_t x, int16_t y, int16_t w, int16_t h, bool invert=false, bool mirror_y=false, bool pgm=false)=0
virtual bool mirror(bool m)=0
GxEPD2_GFX(GxEPD2_EPD &_epd2, int16_t w, int16_t h)
virtual void refresh(bool partial_update_mode=false)=0
virtual void setFullWindow()=0
virtual void displayWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)=0
virtual uint16_t pageHeight()=0