Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
|
#include <GxEPD2_213c.h>
Public Member Functions | |
GxEPD2_213c (int16_t cs, int16_t dc, int16_t rst, int16_t busy) | |
void | clearScreen (uint8_t value=0xFF) |
void | clearScreen (uint8_t black_value, uint8_t color_value) |
void | writeScreenBuffer (uint8_t value=0xFF) |
void | writeScreenBuffer (uint8_t black_value, uint8_t color_value) |
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 | 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 | init (uint32_t serial_diag_bitrate=0) |
virtual void | init (uint32_t serial_diag_bitrate, bool initial, uint16_t reset_duration=10, bool pulldown_rst_mode=false) |
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 | writeScreenBufferAgain (uint8_t value=0xFF) |
virtual 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) |
virtual 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) |
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 = 104 |
static const uint16_t | WIDTH_VISIBLE = WIDTH |
static const uint16_t | HEIGHT = 212 |
static const GxEPD2::Panel | panel = GxEPD2::GDEW0213Z16 |
static const bool | hasColor = true |
static const bool | hasPartialUpdate = true |
static const bool | usePartialUpdateWindow = true |
static const bool | hasFastPartialUpdate = false |
static const uint16_t | power_on_time = 40 |
static const uint16_t | power_off_time = 30 |
static const uint16_t | full_refresh_time = 15000 |
static const uint16_t | partial_refresh_time = 15000 |
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 |
Definition at line 18 of file GxEPD2_213c.h.
GxEPD2_213c::GxEPD2_213c | ( | int16_t | cs, |
int16_t | dc, | ||
int16_t | rst, | ||
int16_t | busy ) |
Definition at line 15 of file GxEPD2_213c.cpp.
void GxEPD2_213c::clearScreen | ( | uint8_t | black_value, |
uint8_t | color_value ) |
Definition at line 25 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 20 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 259 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 246 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 265 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 252 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 272 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 310 of file GxEPD2_213c.cpp.
|
virtual |
|
virtual |
Implements GxEPD2_EPD.
Definition at line 278 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 284 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 74 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 69 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 157 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 151 of file GxEPD2_213c.cpp.
void GxEPD2_213c::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 238 of file GxEPD2_213c.cpp.
void GxEPD2_213c::writeScreenBuffer | ( | uint8_t | black_value, |
uint8_t | color_value ) |
Definition at line 50 of file GxEPD2_213c.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 45 of file GxEPD2_213c.cpp.
|
static |
Definition at line 32 of file GxEPD2_213c.h.
|
static |
Definition at line 26 of file GxEPD2_213c.h.
|
static |
Definition at line 29 of file GxEPD2_213c.h.
|
static |
Definition at line 27 of file GxEPD2_213c.h.
|
static |
Definition at line 24 of file GxEPD2_213c.h.
|
static |
Definition at line 25 of file GxEPD2_213c.h.
|
static |
Definition at line 33 of file GxEPD2_213c.h.
|
static |
Definition at line 31 of file GxEPD2_213c.h.
|
static |
Definition at line 30 of file GxEPD2_213c.h.
|
static |
Definition at line 28 of file GxEPD2_213c.h.
|
static |
Definition at line 22 of file GxEPD2_213c.h.
|
static |
Definition at line 23 of file GxEPD2_213c.h.