26 static const uint16_t
WIDTH = 1304;
41 int16_t cs_m1, int16_t cs_s1, int16_t cs_m2, int16_t cs_s2,
42 int16_t dc1, int16_t dc2, int16_t rst1, int16_t rst2,
43 int16_t busy_m1, int16_t busy_s1, int16_t busy_m2, int16_t busy_s2);
46 GxEPD2_1248c(int16_t cs_m1, int16_t cs_s1, int16_t cs_m2, int16_t cs_s2,
47 int16_t dc1, int16_t dc2, int16_t rst1, int16_t rst2,
48 int16_t busy_m1, int16_t busy_s1, int16_t busy_m2, int16_t busy_s2);
50 GxEPD2_1248c(int16_t cs_m1, int16_t cs_s1, int16_t cs_m2, int16_t cs_s2, int16_t dc, int16_t rst, int16_t busy);
52 void init(uint32_t serial_diag_bitrate = 0);
53 void init(uint32_t serial_diag_bitrate,
bool initial, uint16_t reset_duration = 20,
bool pulldown_rst_mode =
false);
59 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);
60 void writeImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
61 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
62 void writeImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
63 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,
64 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
66 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);
68 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);
69 void drawImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
70 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
71 void drawImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
72 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,
73 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
75 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);
76 void refresh(
bool partial_update_mode =
false);
77 void refresh(int16_t x, int16_t y, int16_t w, int16_t h);
81 void _writeScreenBuffer(uint8_t command, uint8_t value);
82 void _writeImage(uint8_t command,
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);
83 void _writeImagePart(uint8_t command,
const uint8_t* bitmap, 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 =
false,
bool mirror_y =
false,
bool pgm =
false);
94 void _writeCommandMaster(uint8_t c);
95 void _writeDataMaster(uint8_t d);
96 void _writeCommandAll(uint8_t c);
97 void _writeDataAll(uint8_t d);
98 void _writeDataPGM_All(
const uint8_t* data, uint16_t n, int16_t fill_with_zeroes = 0);
99 void _waitWhileAnyBusy(
const char* comment = 0, uint16_t busy_time = 5000);
100 void _getMasterTemperature();
103 void _readController(uint8_t cmd, uint8_t* data, uint16_t n, int8_t cs = -1, int8_t dc = -1);
105 int16_t _sck, _miso, _mosi, _dc1, _dc2, _rst1, _rst2;
106 int16_t _cs_m1, _cs_s1, _cs_m2, _cs_s2;
107 int16_t _busy_m1, _busy_s1, _busy_m2, _busy_s2;
113 ScreenPart(uint16_t width, uint16_t height,
bool rev_scan, int16_t cs, int16_t dc);
114 void writeScreenBuffer(uint8_t command, uint8_t value = 0xFF);
115 void writeImagePart(uint8_t command,
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
116 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
117 void writeCommand(uint8_t c);
118 void writeData(uint8_t d);
120 void _setPartialRamArea(uint16_t x, uint16_t y, uint16_t w, uint16_t h);
121 void _startTransfer();
122 void _transfer(uint8_t value);
125 const uint16_t WIDTH, HEIGHT;
129 const SPISettings _spi_settings;
131 ScreenPart M1, S1, M2, S2;