Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
GxEPD2_1248 Class Reference

#include <GxEPD2_1248.h>

Inheritance diagram for GxEPD2_1248:
GxEPD2_EPD

Public Member Functions

 GxEPD2_1248 (int16_t cs_m1, int16_t cs_s1, int16_t cs_m2, int16_t cs_s2, int16_t dc1, int16_t dc2, int16_t rst1, int16_t rst2, int16_t busy_m1, int16_t busy_s1, int16_t busy_m2, int16_t busy_s2)
 
 GxEPD2_1248 (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)
 
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 clearScreen (uint8_t value=0xFF)
 
void writeScreenBuffer (uint8_t value=0xFF)
 
void writeScreenBufferAgain (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=false, bool mirror_y=false, bool pgm=false)
 
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=false, bool mirror_y=false, bool pgm=false)
 
void writeImageAgain (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 writeImagePartAgain (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 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)
 
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=false, bool mirror_y=false, bool pgm=false)
 
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=false, bool mirror_y=false, bool pgm=false)
 
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)
 
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 Member Functions inherited from GxEPD2_EPD
 GxEPD2_EPD (int16_t cs, int16_t dc, int16_t rst, int16_t busy, int16_t busy_level, uint32_t busy_timeout, uint16_t w, uint16_t h, GxEPD2::Panel p, bool c, bool pu, bool fpu)
 
virtual void writeImageForFullRefresh (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)
 
virtual void setPaged ()
 
void setBusyCallback (void(*busyCallback)(const void *), const void *busy_callback_parameter=0)
 
void selectSPI (SPIClass &spi, SPISettings spi_settings)
 

Static Public Attributes

static const uint16_t WIDTH = 1304
 
static const uint16_t HEIGHT = 984
 
static const GxEPD2::Panel panel = GxEPD2::GDEW1248T3
 
static const bool hasColor = false
 
static const bool hasPartialUpdate = true
 
static const bool hasFastPartialUpdate = true
 
static const uint16_t power_on_time = 200
 
static const uint16_t power_off_time = 50
 
static const uint16_t full_refresh_time = 4600
 
static const uint16_t partial_refresh_time = 1600
 

Friends

class GDEW1248T3_OTP
 

Additional Inherited Members

- Static Public Member Functions inherited from GxEPD2_EPD
static uint16_t gx_uint16_min (uint16_t a, uint16_t b)
 
static uint16_t gx_uint16_max (uint16_t a, uint16_t b)
 
- Public Attributes inherited from GxEPD2_EPD
const uint16_t WIDTH
 
const uint16_t HEIGHT
 
const GxEPD2::Panel panel
 
const bool hasColor
 
const bool hasPartialUpdate
 
const bool hasFastPartialUpdate
 
- Protected Member Functions inherited from GxEPD2_EPD
void _reset ()
 
void _waitWhileBusy (const char *comment=0, uint16_t busy_time=5000)
 
void _writeCommand (uint8_t c)
 
void _writeData (uint8_t d)
 
void _writeData (const uint8_t *data, uint16_t n)
 
void _writeDataPGM (const uint8_t *data, uint16_t n, int16_t fill_with_zeroes=0)
 
void _writeDataPGM_sCS (const uint8_t *data, uint16_t n, int16_t fill_with_zeroes=0)
 
void _writeCommandData (const uint8_t *pCommandData, uint8_t datalen)
 
void _writeCommandDataPGM (const uint8_t *pCommandData, uint8_t datalen)
 
void _startTransfer ()
 
void _transfer (uint8_t value)
 
void _endTransfer ()
 
- Protected Attributes inherited from GxEPD2_EPD
int16_t _cs
 
int16_t _dc
 
int16_t _rst
 
int16_t _busy
 
int16_t _busy_level
 
uint32_t _busy_timeout
 
bool _diag_enabled
 
bool _pulldown_rst_mode
 
SPIClass * _pSPIx
 
SPISettings _spi_settings
 
bool _initial_write
 
bool _initial_refresh
 
bool _power_is_on
 
bool _using_partial_mode
 
bool _hibernating
 
uint16_t _reset_duration
 
void(* _busy_callback )(const void *)
 
const void * _busy_callback_parameter
 

Detailed Description

Definition at line 19 of file GxEPD2_1248.h.

Constructor & Destructor Documentation

◆ GxEPD2_1248() [1/2]

GxEPD2_1248::GxEPD2_1248 ( int16_t cs_m1,
int16_t cs_s1,
int16_t cs_m2,
int16_t cs_s2,
int16_t dc1,
int16_t dc2,
int16_t rst1,
int16_t rst2,
int16_t busy_m1,
int16_t busy_s1,
int16_t busy_m2,
int16_t busy_s2 )

Definition at line 36 of file GxEPD2_1248.cpp.

38 :
39 GxEPD2_EPD(cs_m1, dc1, rst1, busy_m1, LOW, 10000000, WIDTH, HEIGHT, panel, hasColor, hasPartialUpdate, hasFastPartialUpdate),
40 _sck(SCK), _miso(MISO), _mosi(MOSI), _dc1(dc1), _dc2(dc2), _rst1(rst1), _rst2(rst2),
41 _cs_m1(cs_m1), _cs_s1(cs_s1), _cs_m2(cs_m2), _cs_s2(cs_s2),
42 _busy_m1(busy_m1), _busy_s1(busy_s1), _busy_m2(busy_m2), _busy_s2(busy_s2),
43 _temperature(20),
44 M1(648, 492, false, cs_m1, dc1),
45 S1(656, 492, false, cs_s1, dc1),
46 M2(656, 492, true, cs_m2, dc2),
47 S2(648, 492, true, cs_s2, dc2)
48{
49}
static const bool hasFastPartialUpdate
Definition GxEPD2_1248.h:28
static const bool hasPartialUpdate
Definition GxEPD2_1248.h:27
static const bool hasColor
Definition GxEPD2_1248.h:26
static const uint16_t HEIGHT
Definition GxEPD2_1248.h:24
static const uint16_t WIDTH
Definition GxEPD2_1248.h:23
static const GxEPD2::Panel panel
Definition GxEPD2_1248.h:25
GxEPD2_EPD(int16_t cs, int16_t dc, int16_t rst, int16_t busy, int16_t busy_level, uint32_t busy_timeout, uint16_t w, uint16_t h, GxEPD2::Panel p, bool c, bool pu, bool fpu)

◆ GxEPD2_1248() [2/2]

GxEPD2_1248::GxEPD2_1248 ( 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 )

Definition at line 52 of file GxEPD2_1248.cpp.

52 :
53 GxEPD2_EPD(23, 25, 33, 32, LOW, 10000000, WIDTH, HEIGHT, panel, hasColor, hasPartialUpdate, hasFastPartialUpdate),
54 _sck(SCK), _miso(MISO), _mosi(MOSI), _dc1(dc), _dc2(dc), _rst1(rst), _rst2(rst),
55 _cs_m1(cs_m1), _cs_s1(cs_s1), _cs_m2(cs_m2), _cs_s2(cs_s2),
56 _busy_m1(busy), _busy_s1(busy), _busy_m2(busy), _busy_s2(busy),
57 _temperature(20),
58 M1(648, 492, false, cs_m1, dc),
59 S1(656, 492, false, cs_s1, dc),
60 M2(656, 492, true, cs_m2, dc),
61 S2(648, 492, true, cs_s2, dc)
62{
63}

Member Function Documentation

◆ clearScreen()

void GxEPD2_1248::clearScreen ( uint8_t value = 0xFF)
virtual

Implements GxEPD2_EPD.

Definition at line 103 of file GxEPD2_1248.cpp.

104{
105 writeScreenBuffer(value);
106 refresh(true);
108}
void refresh(bool partial_update_mode=false)
void writeScreenBufferAgain(uint8_t value=0xFF)
void writeScreenBuffer(uint8_t value=0xFF)

◆ drawImage() [1/2]

void GxEPD2_1248::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 )

Definition at line 218 of file GxEPD2_1248.cpp.

219{
220 if (black)
221 {
222 drawImage(black, x, y, w, h, invert, mirror_y, pgm);
223 }
224}
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)

◆ drawImage() [2/2]

void GxEPD2_1248::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 )

Definition at line 203 of file GxEPD2_1248.cpp.

204{
205 writeImage(bitmap, x, y, w, h, invert, mirror_y, pgm);
206 refresh(x, y, w, h);
207 writeImageAgain(bitmap, x, y, w, h, invert, mirror_y, pgm);
208}
void writeImageAgain(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 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)

◆ drawImagePart() [1/2]

void GxEPD2_1248::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 = false,
bool mirror_y = false,
bool pgm = false )

Definition at line 226 of file GxEPD2_1248.cpp.

228{
229 if (black)
230 {
231 drawImagePart(black, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
232 }
233}
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)

◆ drawImagePart() [2/2]

void GxEPD2_1248::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 )

Definition at line 210 of file GxEPD2_1248.cpp.

212{
213 writeImagePart(bitmap, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
214 refresh(x, y, w, h);
215 writeImagePartAgain(bitmap, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
216}
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 writeImagePartAgain(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)

◆ drawNative()

void GxEPD2_1248::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 )

Definition at line 235 of file GxEPD2_1248.cpp.

236{
237 if (data1)
238 {
239 drawImage(data1, x, y, w, h, invert, mirror_y, pgm);
240 }
241}

◆ hibernate()

void GxEPD2_1248::hibernate ( )
virtual

Implements GxEPD2_EPD.

Definition at line 266 of file GxEPD2_1248.cpp.

267{
268 _PowerOff();
269 if (_rst >= 0)
270 {
271 _writeCommandAll(0x07); // deep sleep
272 _writeDataAll(0xA5); // check code
273 _hibernating = true;
274 }
275}
int16_t _rst
Definition GxEPD2_EPD.h:112
bool _hibernating
Definition GxEPD2_EPD.h:118

◆ init() [1/2]

void GxEPD2_1248::init ( uint32_t serial_diag_bitrate,
bool initial,
uint16_t reset_duration = 20,
bool pulldown_rst_mode = false )
virtual

Reimplemented from GxEPD2_EPD.

Definition at line 70 of file GxEPD2_1248.cpp.

71{
72 _initial_write = initial;
73 _initial_refresh = initial;
74 _using_partial_mode = false;
75 if (serial_diag_bitrate > 0)
76 {
77 Serial.begin(serial_diag_bitrate);
78 _diag_enabled = true;
79 Serial.println(); Serial.println("GxEPD2_1248::init()");
80 }
81 pinMode(_cs_m1, OUTPUT);
82 pinMode(_cs_s1, OUTPUT);
83 pinMode(_cs_m2, OUTPUT);
84 pinMode(_cs_s2, OUTPUT);
85 pinMode(_dc1, OUTPUT);
86 pinMode(_dc2, OUTPUT);
87 pinMode(_rst1, OUTPUT);
88 pinMode(_rst2, OUTPUT);
89 pinMode(_busy_m1, INPUT);
90 pinMode(_busy_s1, INPUT);
91 pinMode(_busy_m2, INPUT);
92 pinMode(_busy_s2, INPUT);
93 digitalWrite(_cs_m1, HIGH);
94 digitalWrite(_cs_s1, HIGH);
95 digitalWrite(_cs_m2, HIGH);
96 digitalWrite(_cs_s2, HIGH);
97 _initSPI();
98 _reset();
99 // only relevant for full refresh, comment out if 20 is ok
100 _getMasterTemperature();
101}
bool _diag_enabled
Definition GxEPD2_EPD.h:114
bool _using_partial_mode
Definition GxEPD2_EPD.h:118
bool _initial_refresh
Definition GxEPD2_EPD.h:117
bool _initial_write
Definition GxEPD2_EPD.h:117

◆ init() [2/2]

void GxEPD2_1248::init ( uint32_t serial_diag_bitrate = 0)
virtual

Reimplemented from GxEPD2_EPD.

Definition at line 65 of file GxEPD2_1248.cpp.

66{
67 init(serial_diag_bitrate, true, 20, false);
68}
void init(uint32_t serial_diag_bitrate=0)

◆ powerOff()

void GxEPD2_1248::powerOff ( void )
virtual

Implements GxEPD2_EPD.

Definition at line 261 of file GxEPD2_1248.cpp.

262{
263 _PowerOff();
264}

◆ refresh() [1/2]

void GxEPD2_1248::refresh ( bool partial_update_mode = false)
virtual

Implements GxEPD2_EPD.

Definition at line 243 of file GxEPD2_1248.cpp.

244{
245 if (partial_update_mode) refresh(0, 0, WIDTH, HEIGHT);
246 else
247 {
248 if (_using_partial_mode) _Init_Full();
249 _Update_Full();
250 _initial_refresh = false; // initial full update done
251 }
252}

◆ refresh() [2/2]

void GxEPD2_1248::refresh ( int16_t x,
int16_t y,
int16_t w,
int16_t h )
virtual

Implements GxEPD2_EPD.

Definition at line 254 of file GxEPD2_1248.cpp.

255{
256 if (_initial_refresh) return refresh(false); // initial update needs be full update
257 if (!_using_partial_mode) _Init_Part();
258 _Update_Part();
259}

◆ writeImage() [1/2]

void GxEPD2_1248::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 )

Definition at line 178 of file GxEPD2_1248.cpp.

179{
180 if (black)
181 {
182 writeImage(black, x, y, w, h, invert, mirror_y, pgm);
183 }
184}

◆ writeImage() [2/2]

void GxEPD2_1248::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 )
virtual

Implements GxEPD2_EPD.

Definition at line 136 of file GxEPD2_1248.cpp.

137{
138 if (_initial_write) writeScreenBuffer(); // initial full screen buffer clean
139 if (!_using_partial_mode) _Init_Part();
140 S2.writeImagePart(0x13, bitmap, 0, 0, w, h, x, y, w, h, invert, mirror_y, pgm);
141 M2.writeImagePart(0x13, bitmap, 0, 0, w, h, x - S2.WIDTH, y, w, h, invert, mirror_y, pgm);
142 M1.writeImagePart(0x13, bitmap, 0, 0, w, h, x, y - S2.HEIGHT, w, h, invert, mirror_y, pgm);
143 S1.writeImagePart(0x13, bitmap, 0, 0, w, h, x - M1.WIDTH, y - M2.HEIGHT, w, h, invert, mirror_y, pgm);
144}

◆ writeImageAgain()

void GxEPD2_1248::writeImageAgain ( 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 )
virtual

Reimplemented from GxEPD2_EPD.

Definition at line 157 of file GxEPD2_1248.cpp.

158{
159 if (_initial_write) writeScreenBuffer(); // initial full screen buffer clean
160 if (!_using_partial_mode) _Init_Part();
161 S2.writeImagePart(0x10, bitmap, 0, 0, w, h, x, y, w, h, invert, mirror_y, pgm);
162 M2.writeImagePart(0x10, bitmap, 0, 0, w, h, x - S2.WIDTH, y, w, h, invert, mirror_y, pgm);
163 M1.writeImagePart(0x10, bitmap, 0, 0, w, h, x, y - S2.HEIGHT, w, h, invert, mirror_y, pgm);
164 S1.writeImagePart(0x10, bitmap, 0, 0, w, h, x - M1.WIDTH, y - M2.HEIGHT, w, h, invert, mirror_y, pgm);
165}

◆ writeImagePart() [1/2]

void GxEPD2_1248::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 = false,
bool mirror_y = false,
bool pgm = false )

Definition at line 186 of file GxEPD2_1248.cpp.

188{
189 if (black)
190 {
191 writeImagePart(black, x_part, y_part, w_bitmap, h_bitmap, x, y, w, h, invert, mirror_y, pgm);
192 }
193}

◆ writeImagePart() [2/2]

void GxEPD2_1248::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 )
virtual

Implements GxEPD2_EPD.

Definition at line 146 of file GxEPD2_1248.cpp.

148{
149 if (_initial_write) writeScreenBuffer(); // initial full screen buffer clean
150 if (!_using_partial_mode) _Init_Part();
151 S2.writeImagePart(0x13, bitmap, x_part, y_part, w, h, x, y, w, h, invert, mirror_y, pgm);
152 M2.writeImagePart(0x13, bitmap, x_part, y_part, w, h, x - S2.WIDTH, y, w, h, invert, mirror_y, pgm);
153 M1.writeImagePart(0x13, bitmap, x_part, y_part, w, h, x, y - S2.HEIGHT, w, h, invert, mirror_y, pgm);
154 S1.writeImagePart(0x13, bitmap, x_part, y_part, w, h, x - M1.WIDTH, y - M2.HEIGHT, w, h, invert, mirror_y, pgm);
155}

◆ writeImagePartAgain()

void GxEPD2_1248::writeImagePartAgain ( 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 )
virtual

Reimplemented from GxEPD2_EPD.

Definition at line 167 of file GxEPD2_1248.cpp.

169{
170 if (_initial_write) writeScreenBuffer(); // initial full screen buffer clean
171 if (!_using_partial_mode) _Init_Part();
172 S2.writeImagePart(0x10, bitmap, x_part, y_part, w, h, x, y, w, h, invert, mirror_y, pgm);
173 M2.writeImagePart(0x10, bitmap, x_part, y_part, w, h, x - S2.WIDTH, y, w, h, invert, mirror_y, pgm);
174 M1.writeImagePart(0x10, bitmap, x_part, y_part, w, h, x, y - S2.HEIGHT, w, h, invert, mirror_y, pgm);
175 S1.writeImagePart(0x10, bitmap, x_part, y_part, w, h, x - M1.WIDTH, y - M2.HEIGHT, w, h, invert, mirror_y, pgm);
176}

◆ writeNative()

void GxEPD2_1248::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 )

Definition at line 195 of file GxEPD2_1248.cpp.

196{
197 if (data1)
198 {
199 writeImage(data1, x, y, w, h, invert, mirror_y, pgm);
200 }
201}

◆ writeScreenBuffer()

void GxEPD2_1248::writeScreenBuffer ( uint8_t value = 0xFF)
virtual

Implements GxEPD2_EPD.

Definition at line 110 of file GxEPD2_1248.cpp.

111{
112 if (!_using_partial_mode) _Init_Part();
113 if (_initial_write)
114 {
115 M1.writeScreenBuffer(0x10, value);
116 S1.writeScreenBuffer(0x10, value);
117 M2.writeScreenBuffer(0x10, value);
118 S2.writeScreenBuffer(0x10, value);
119 }
120 M1.writeScreenBuffer(0x13, value);
121 S1.writeScreenBuffer(0x13, value);
122 M2.writeScreenBuffer(0x13, value);
123 S2.writeScreenBuffer(0x13, value);
124 _initial_write = false; // initial full screen buffer clean done
125}

◆ writeScreenBufferAgain()

void GxEPD2_1248::writeScreenBufferAgain ( uint8_t value = 0xFF)
virtual

Reimplemented from GxEPD2_EPD.

Definition at line 127 of file GxEPD2_1248.cpp.

128{
129 if (!_using_partial_mode) _Init_Part();
130 M1.writeScreenBuffer(0x10, value);
131 S1.writeScreenBuffer(0x10, value);
132 M2.writeScreenBuffer(0x10, value);
133 S2.writeScreenBuffer(0x10, value);
134}

Friends And Related Symbol Documentation

◆ GDEW1248T3_OTP

friend class GDEW1248T3_OTP
friend

Definition at line 99 of file GxEPD2_1248.h.

Member Data Documentation

◆ full_refresh_time

const uint16_t GxEPD2_1248::full_refresh_time = 4600
static

Definition at line 31 of file GxEPD2_1248.h.

◆ hasColor

const bool GxEPD2_1248::hasColor = false
static

Definition at line 26 of file GxEPD2_1248.h.

◆ hasFastPartialUpdate

const bool GxEPD2_1248::hasFastPartialUpdate = true
static

Definition at line 28 of file GxEPD2_1248.h.

◆ hasPartialUpdate

const bool GxEPD2_1248::hasPartialUpdate = true
static

Definition at line 27 of file GxEPD2_1248.h.

◆ HEIGHT

const uint16_t GxEPD2_1248::HEIGHT = 984
static

Definition at line 24 of file GxEPD2_1248.h.

◆ panel

const GxEPD2::Panel GxEPD2_1248::panel = GxEPD2::GDEW1248T3
static

Definition at line 25 of file GxEPD2_1248.h.

◆ partial_refresh_time

const uint16_t GxEPD2_1248::partial_refresh_time = 1600
static

Definition at line 32 of file GxEPD2_1248.h.

◆ power_off_time

const uint16_t GxEPD2_1248::power_off_time = 50
static

Definition at line 30 of file GxEPD2_1248.h.

◆ power_on_time

const uint16_t GxEPD2_1248::power_on_time = 200
static

Definition at line 29 of file GxEPD2_1248.h.

◆ WIDTH

const uint16_t GxEPD2_1248::WIDTH = 1304
static

Definition at line 23 of file GxEPD2_1248.h.


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