Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
GxEPD2_7C< GxEPD2_Type, page_height > Class Template Reference

#include <GxEPD2_7C.h>

Inheritance diagram for GxEPD2_7C< GxEPD2_Type, page_height >:

Public Member Functions

 GxEPD2_7C (GxEPD2_Type epd2_instance)
 
uint16_t pages ()
 
uint16_t pageHeight ()
 
bool mirror (bool m)
 
void drawPixel (int16_t x, int16_t y, uint16_t color)
 
void init (uint32_t serial_diag_bitrate=0)
 
void init (uint32_t serial_diag_bitrate, bool initial, uint16_t reset_duration=20, bool pulldown_rst_mode=false)
 
void init (uint32_t serial_diag_bitrate, bool initial, uint16_t reset_duration, bool pulldown_rst_mode, SPIClass &spi, SPISettings spi_settings)
 
void fillScreen (uint16_t color)
 
void display (bool partial_update_mode=false)
 
void displayWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h)
 
void setFullWindow ()
 
void setPartialWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h)
 
void firstPage ()
 
bool nextPage ()
 
void drawPaged (void(*drawCallback)(const void *), const void *pv)
 
void drawInvertedBitmap (int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)
 
void clearScreen (uint8_t value=0xFF)
 
void writeScreenBuffer (uint8_t value=0xFF)
 
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)
 
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)
 
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)
 
void writeImage (const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h)
 
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)
 
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)
 
void writeNative (const uint8_t *data1, const uint8_t *data2, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)
 
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)
 
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)
 
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)
 
void drawImage (const uint8_t *black, const uint8_t *color, int16_t x, int16_t y, int16_t w, int16_t h)
 
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)
 
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)
 
void drawNative (const uint8_t *data1, const uint8_t *data2, int16_t x, int16_t y, int16_t w, int16_t h, bool invert, bool mirror_y, bool pgm)
 
void refresh (bool partial_update_mode=false)
 
void refresh (int16_t x, int16_t y, int16_t w, int16_t h)
 
void powerOff ()
 
void hibernate ()
 

Public Attributes

GxEPD2_Type epd2
 

Detailed Description

template<typename GxEPD2_Type, const uint16_t page_height>
class GxEPD2_7C< GxEPD2_Type, page_height >

Definition at line 36 of file GxEPD2_7C.h.

Constructor & Destructor Documentation

◆ GxEPD2_7C()

template<typename GxEPD2_Type , const uint16_t page_height>
GxEPD2_7C< GxEPD2_Type, page_height >::GxEPD2_7C ( GxEPD2_Type epd2_instance)
inline

Definition at line 43 of file GxEPD2_7C.h.

43 : GxEPD2_GFX_BASE_CLASS(GxEPD2_Type::WIDTH, GxEPD2_Type::HEIGHT), epd2(epd2_instance)
44#endif
45 {
46 _page_height = page_height;
47 _pages = (HEIGHT / _page_height) + ((HEIGHT % _page_height) > 0);
48 _mirror = false;
49 _using_partial_mode = false;
50 _current_page = 0;
52 }
#define GxEPD2_GFX_BASE_CLASS
Definition GxEPD2_7C.h:29
void setFullWindow()
Definition GxEPD2_7C.h:173
GxEPD2_Type epd2
Definition GxEPD2_7C.h:39

Member Function Documentation

◆ clearScreen()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::clearScreen ( uint8_t value = 0xFF)
inline

Definition at line 339 of file GxEPD2_7C.h.

340 {
341 epd2.clearScreen(value);
342 }

◆ display()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::display ( bool partial_update_mode = false)
inline

Definition at line 149 of file GxEPD2_7C.h.

150 {
151 epd2.writeNative(_pixel_buffer, 0, 0, 0, WIDTH, _page_height);
152 epd2.refresh(partial_update_mode);
153 if (!partial_update_mode) epd2.powerOff();
154 }

◆ displayWindow()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::displayWindow ( uint16_t x,
uint16_t y,
uint16_t w,
uint16_t h )
inline

Definition at line 162 of file GxEPD2_7C.h.

163 {
164 x = gx_uint16_min(x, width());
165 y = gx_uint16_min(y, height());
166 w = gx_uint16_min(w, width() - x);
167 h = gx_uint16_min(h, height() - y);
168 _rotate(x, y, w, h);
169 epd2.writeNativePart(_pixel_buffer, 0, x, y, WIDTH, _page_height, x, y, w, h);
170 epd2.refresh(x, y, w, h);
171 }

◆ drawImage() [1/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::drawImage ( const uint8_t * black,
const uint8_t * color,
int16_t x,
int16_t y,
int16_t w,
int16_t h )
inline

Definition at line 394 of file GxEPD2_7C.h.

395 {
396 epd2.drawImage(black, color, x, y, w, h, false, false, false);
397 }

◆ drawImage() [2/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 390 of file GxEPD2_7C.h.

391 {
392 epd2.drawImage(black, color, x, y, w, h, invert, mirror_y, pgm);
393 }

◆ drawImage() [3/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 381 of file GxEPD2_7C.h.

382 {
383 epd2.drawImage(bitmap, x, y, w, h, invert, mirror_y, pgm);
384 }

◆ drawImagePart() [1/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 403 of file GxEPD2_7C.h.

405 {
406 epd2.drawImagePart(black, color, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, false, false, false);
407 }

◆ drawImagePart() [2/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 398 of file GxEPD2_7C.h.

400 {
401 epd2.drawImagePart(black, color, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
402 }

◆ drawImagePart() [3/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 385 of file GxEPD2_7C.h.

387 {
388 epd2.drawImagePart(bitmap, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
389 }

◆ drawInvertedBitmap()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::drawInvertedBitmap ( int16_t x,
int16_t y,
const uint8_t bitmap[],
int16_t w,
int16_t h,
uint16_t color )
inline

Definition at line 312 of file GxEPD2_7C.h.

313 {
314 // taken from Adafruit_GFX.cpp, modified
315 int16_t byteWidth = (w + 7) / 8; // Bitmap scanline pad = whole byte
316 uint8_t byte = 0;
317 for (int16_t j = 0; j < h; j++)
318 {
319 for (int16_t i = 0; i < w; i++ )
320 {
321 if (i & 7) byte <<= 1;
322 else
323 {
324#if defined(__AVR) || defined(ESP8266) || defined(ESP32)
325 byte = pgm_read_byte(&bitmap[j * byteWidth + i / 8]);
326#else
327 byte = bitmap[j * byteWidth + i / 8];
328#endif
329 }
330 if (!(byte & 0x80))
331 {
332 drawPixel(x + i, y + j, color);
333 }
334 }
335 }
336 }
void drawPixel(int16_t x, int16_t y, uint16_t color)
Definition GxEPD2_7C.h:70

◆ drawNative()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::drawNative ( const uint8_t * data1,
const uint8_t * data2,
int16_t x,
int16_t y,
int16_t w,
int16_t h,
bool invert,
bool mirror_y,
bool pgm )
inline

Definition at line 409 of file GxEPD2_7C.h.

410 {
411 epd2.drawNative(data1, data2, x, y, w, h, invert, mirror_y, pgm);
412 }

◆ drawPaged()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::drawPaged ( void(* drawCallback )(const void *),
const void * pv )
inline

Definition at line 277 of file GxEPD2_7C.h.

278 {
279 if (_using_partial_mode)
280 {
281 for (_current_page = 0; _current_page < _pages; _current_page++)
282 {
283 uint16_t page_ys = _current_page * _page_height;
284 uint16_t page_ye = _current_page < (_pages - 1) ? page_ys + _page_height : HEIGHT;
285 uint16_t dest_ys = _pw_y + page_ys; // transposed
286 uint16_t dest_ye = gx_uint16_min(_pw_y + _pw_h, _pw_y + page_ye);
287 if (dest_ye > dest_ys)
288 {
290 drawCallback(pv);
291 epd2.writeNative(_pixel_buffer, 0, _pw_x, dest_ys, _pw_w, dest_ye - dest_ys);
292 }
293 }
294 epd2.refresh(_pw_x, _pw_y, _pw_w, _pw_h);
295 }
296 else // full update
297 {
298 epd2.setPaged(); // for GxEPD2_154c paged workaround
299 for (_current_page = 0; _current_page < _pages; _current_page++)
300 {
301 uint16_t page_ys = _current_page * _page_height;
303 drawCallback(pv);
304 epd2.writeNative(_pixel_buffer, 0, 0, page_ys, WIDTH, gx_uint16_min(_page_height, HEIGHT - page_ys));
305 }
306 epd2.refresh(false); // full update
307 epd2.powerOff();
308 }
309 _current_page = 0;
310 }
#define GxEPD_WHITE
Definition GxEPD2.h:20
void fillScreen(uint16_t color)
Definition GxEPD2_7C.h:138

◆ drawPixel()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::drawPixel ( int16_t x,
int16_t y,
uint16_t color )
inline

Definition at line 70 of file GxEPD2_7C.h.

71 {
72 if ((x < 0) || (x >= width()) || (y < 0) || (y >= height())) return;
73 if (_mirror) x = width() - x - 1;
74 // check rotation, move pixel around if necessary
75 switch (getRotation())
76 {
77 case 1:
78 _swap_(x, y);
79 x = WIDTH - x - 1;
80 break;
81 case 2:
82 x = WIDTH - x - 1;
83 y = HEIGHT - y - 1;
84 break;
85 case 3:
86 _swap_(x, y);
87 y = HEIGHT - y - 1;
88 break;
89 }
90 // transpose partial window to 0,0
91 x -= _pw_x;
92 y -= _pw_y;
93 // clip to (partial) window
94 if ((x < 0) || (x >= int16_t(_pw_w)) || (y < 0) || (y >= int16_t(_pw_h))) return;
95 // adjust for current page
96 y -= _current_page * _page_height;
97 // check if in current page
98 if ((y < 0) || (y >= int16_t(_page_height))) return;
99 uint32_t i = x / 2 + uint32_t(y) * (_pw_w / 2);
100 uint8_t pv = color7(color);
101 if (x & 1) _pixel_buffer[i] = (_pixel_buffer[i] & 0xF0) | pv;
102 else _pixel_buffer[i] = (_pixel_buffer[i] & 0x0F) | (pv << 4);
103 }

◆ fillScreen()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::fillScreen ( uint16_t color)
inline

Definition at line 138 of file GxEPD2_7C.h.

139 {
140 uint8_t pv = color7(color);
141 uint8_t pv2 = pv | pv << 4;
142 for (uint32_t x = 0; x < sizeof(_pixel_buffer); x++)
143 {
144 _pixel_buffer[x] = pv2;
145 }
146 }

◆ firstPage()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::firstPage ( )
inline

Definition at line 202 of file GxEPD2_7C.h.

203 {
205 _current_page = 0;
206 _second_phase = false;
207 epd2.setPaged(); // for GxEPD2_565c paged workaround
208 }

◆ hibernate()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::hibernate ( )
inline

Definition at line 428 of file GxEPD2_7C.h.

429 {
430 epd2.hibernate();
431 }

◆ init() [1/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::init ( uint32_t serial_diag_bitrate,
bool initial,
uint16_t reset_duration,
bool pulldown_rst_mode,
SPIClass & spi,
SPISettings spi_settings )
inline

Definition at line 129 of file GxEPD2_7C.h.

130 {
131 epd2.selectSPI(spi, spi_settings);
132 epd2.init(serial_diag_bitrate, initial, reset_duration, pulldown_rst_mode);
133 _using_partial_mode = false;
134 _current_page = 0;
136 }

◆ init() [2/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::init ( uint32_t serial_diag_bitrate,
bool initial,
uint16_t reset_duration = 20,
bool pulldown_rst_mode = false )
inline

Definition at line 118 of file GxEPD2_7C.h.

119 {
120 epd2.init(serial_diag_bitrate, initial, reset_duration, pulldown_rst_mode);
121 _using_partial_mode = false;
122 _current_page = 0;
124 }

◆ init() [3/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::init ( uint32_t serial_diag_bitrate = 0)
inline

Definition at line 105 of file GxEPD2_7C.h.

106 {
107 epd2.init(serial_diag_bitrate);
108 _using_partial_mode = false;
109 _current_page = 0;
111 }

◆ mirror()

template<typename GxEPD2_Type , const uint16_t page_height>
bool GxEPD2_7C< GxEPD2_Type, page_height >::mirror ( bool m)
inline

Definition at line 64 of file GxEPD2_7C.h.

65 {
66 _swap_ (_mirror, m);
67 return m;
68 }

◆ nextPage()

template<typename GxEPD2_Type , const uint16_t page_height>
bool GxEPD2_7C< GxEPD2_Type, page_height >::nextPage ( )
inline

Definition at line 210 of file GxEPD2_7C.h.

211 {
212 uint16_t page_ys = _current_page * _page_height;
213 if (_using_partial_mode)
214 {
215 //Serial.print(" nextPage("); Serial.print(_pw_x); Serial.print(", "); Serial.print(_pw_y); Serial.print(", ");
216 //Serial.print(_pw_w); Serial.print(", "); Serial.print(_pw_h); Serial.print(") P"); Serial.println(_current_page);
217 uint16_t page_ye = _current_page < int16_t(_pages - 1) ? page_ys + _page_height : HEIGHT;
218 uint16_t dest_ys = _pw_y + page_ys; // transposed
219 uint16_t dest_ye = gx_uint16_min(_pw_y + _pw_h, _pw_y + page_ye);
220 if (dest_ye > dest_ys)
221 {
222 //Serial.print("writeImage("); Serial.print(_pw_x); Serial.print(", "); Serial.print(dest_ys); Serial.print(", ");
223 //Serial.print(_pw_w); Serial.print(", "); Serial.print(dest_ye - dest_ys); Serial.println(")");
224 epd2.writeNative(_pixel_buffer, 0, _pw_x, dest_ys, _pw_w, dest_ye - dest_ys);
225 }
226 else
227 {
228 //Serial.print("writeImage("); Serial.print(_pw_x); Serial.print(", "); Serial.print(dest_ys); Serial.print(", ");
229 //Serial.print(_pw_w); Serial.print(", "); Serial.print(dest_ye - dest_ys); Serial.print(") skipped ");
230 //Serial.print(dest_ys); Serial.print(".."); Serial.println(dest_ye);
231 }
232 _current_page++;
233 if (_current_page == int16_t(_pages))
234 {
235 _current_page = 0;
236 if (!_second_phase)
237 {
238 epd2.refresh(_pw_x, _pw_y, _pw_w, _pw_h);
239 if (epd2.hasFastPartialUpdate)
240 {
241 _second_phase = true;
242 return true;
243 }
244 }
245 return false;
246 }
248 return true;
249 }
250 else // full update
251 {
252 epd2.writeNative(_pixel_buffer, 0, 0, page_ys, WIDTH, gx_uint16_min(_page_height, HEIGHT - page_ys));
253 _current_page++;
254 if (_current_page == int16_t(_pages))
255 {
256 _current_page = 0;
257 if ((epd2.panel == GxEPD2::GDEW0154Z04) && (_pages > 1))
258 {
259 if (!_second_phase)
260 {
261 epd2.refresh(false); // full update after first phase
262 _second_phase = true;
264 return true;
265 }
266 else epd2.refresh(true); // partial update after second phase
267 } else epd2.refresh(false); // full update after only phase
268 epd2.powerOff();
269 return false;
270 }
272 return true;
273 }
274 }
@ GDEW0154Z04
Definition GxEPD2.h:80

◆ pageHeight()

template<typename GxEPD2_Type , const uint16_t page_height>
uint16_t GxEPD2_7C< GxEPD2_Type, page_height >::pageHeight ( )
inline

Definition at line 59 of file GxEPD2_7C.h.

60 {
61 return _page_height;
62 }

◆ pages()

template<typename GxEPD2_Type , const uint16_t page_height>
uint16_t GxEPD2_7C< GxEPD2_Type, page_height >::pages ( )
inline

Definition at line 54 of file GxEPD2_7C.h.

55 {
56 return _pages;
57 }

◆ powerOff()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::powerOff ( )
inline

Definition at line 423 of file GxEPD2_7C.h.

424 {
425 epd2.powerOff();
426 }

◆ refresh() [1/2]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::refresh ( bool partial_update_mode = false)
inline

Definition at line 413 of file GxEPD2_7C.h.

414 {
415 epd2.refresh(partial_update_mode);
416 if (!partial_update_mode) epd2.powerOff();
417 }

◆ refresh() [2/2]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::refresh ( int16_t x,
int16_t y,
int16_t w,
int16_t h )
inline

Definition at line 418 of file GxEPD2_7C.h.

419 {
420 epd2.refresh(x, y, w, h);
421 }

◆ setFullWindow()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::setFullWindow ( )
inline

Definition at line 173 of file GxEPD2_7C.h.

174 {
175 _using_partial_mode = false;
176 _pw_x = 0;
177 _pw_y = 0;
178 _pw_w = WIDTH;
179 _pw_h = HEIGHT;
180 }

◆ setPartialWindow()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::setPartialWindow ( uint16_t x,
uint16_t y,
uint16_t w,
uint16_t h )
inline

Definition at line 187 of file GxEPD2_7C.h.

188 {
189 if (!epd2.hasPartialUpdate) return;
190 _pw_x = gx_uint16_min(x, width());
191 _pw_y = gx_uint16_min(y, height());
192 _pw_w = gx_uint16_min(w, width() - _pw_x);
193 _pw_h = gx_uint16_min(h, height() - _pw_y);
194 _rotate(_pw_x, _pw_y, _pw_w, _pw_h);
195 _using_partial_mode = true;
196 // make _pw_x, _pw_w multiple of 2
197 _pw_w += _pw_x % 2;
198 if (_pw_w % 2 > 0) _pw_w += 2 - _pw_w % 2;
199 _pw_x -= _pw_x % 2;
200 }

◆ writeImage() [1/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::writeImage ( const uint8_t * black,
const uint8_t * color,
int16_t x,
int16_t y,
int16_t w,
int16_t h )
inline

Definition at line 361 of file GxEPD2_7C.h.

362 {
363 epd2.writeImage(black, color, x, y, w, h, false, false, false);
364 }

◆ writeImage() [2/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 357 of file GxEPD2_7C.h.

358 {
359 epd2.writeImage(black, color, x, y, w, h, invert, mirror_y, pgm);
360 }

◆ writeImage() [3/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 348 of file GxEPD2_7C.h.

349 {
350 epd2.writeImage(bitmap, x, y, w, h, invert, mirror_y, pgm);
351 }

◆ writeImagePart() [1/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 370 of file GxEPD2_7C.h.

372 {
373 epd2.writeImagePart(black, color, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, false, false, false);
374 }

◆ writeImagePart() [2/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 365 of file GxEPD2_7C.h.

367 {
368 epd2.writeImagePart(black, color, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
369 }

◆ writeImagePart() [3/3]

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::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 )
inline

Definition at line 352 of file GxEPD2_7C.h.

354 {
355 epd2.writeImagePart(bitmap, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
356 }

◆ writeNative()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::writeNative ( const uint8_t * data1,
const uint8_t * data2,
int16_t x,
int16_t y,
int16_t w,
int16_t h,
bool invert,
bool mirror_y,
bool pgm )
inline

Definition at line 376 of file GxEPD2_7C.h.

377 {
378 epd2.writeNative(data1, data2, x, y, w, h, invert, mirror_y, pgm);
379 }

◆ writeScreenBuffer()

template<typename GxEPD2_Type , const uint16_t page_height>
void GxEPD2_7C< GxEPD2_Type, page_height >::writeScreenBuffer ( uint8_t value = 0xFF)
inline

Definition at line 343 of file GxEPD2_7C.h.

344 {
345 epd2.writeScreenBuffer(value);
346 }

Member Data Documentation

◆ epd2

template<typename GxEPD2_Type , const uint16_t page_height>
GxEPD2_Type GxEPD2_7C< GxEPD2_Type, page_height >::epd2

Definition at line 39 of file GxEPD2_7C.h.


The documentation for this class was generated from the following file: