Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
|
#include <GxEPD2_it60.h>
Public Member Functions | |
GxEPD2_it60 (int16_t cs, 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=0x33) |
void | writeScreenBuffer (uint8_t value=0x33) |
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 | 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 = 800 |
static const uint16_t | HEIGHT = 600 |
static const GxEPD2::Panel | panel = GxEPD2::ED060SCT |
static const bool | hasColor = false |
static const bool | hasPartialUpdate = true |
static const bool | hasFastPartialUpdate = true |
static const uint16_t | reset_to_ready_time = 1800 |
static const uint16_t | power_on_time = 10 |
static const uint16_t | power_off_time = 200 |
static const uint16_t | full_refresh_time = 600 |
static const uint16_t | partial_refresh_time = 300 |
static const uint16_t | refresh_cmd_time = 10 |
static const uint16_t | refresh_par_time = 2 |
static const uint16_t | default_wait_time = 1 |
static const uint16_t | diag_min_time = 3 |
static const uint16_t | set_vcom_time = 40 |
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 22 of file GxEPD2_it60.h.
GxEPD2_it60::GxEPD2_it60 | ( | int16_t | cs, |
int16_t | dc, | ||
int16_t | rst, | ||
int16_t | busy ) |
Definition at line 58 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 108 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 360 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 347 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 366 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 353 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 373 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 420 of file GxEPD2_it60.cpp.
|
virtual |
Reimplemented from GxEPD2_EPD.
Definition at line 70 of file GxEPD2_it60.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements GxEPD2_EPD.
Definition at line 379 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 384 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 275 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 161 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 283 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 216 of file GxEPD2_it60.cpp.
void GxEPD2_it60::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 292 of file GxEPD2_it60.cpp.
|
virtual |
Implements GxEPD2_EPD.
Definition at line 133 of file GxEPD2_it60.cpp.
|
static |
Definition at line 39 of file GxEPD2_it60.h.
|
static |
Definition at line 40 of file GxEPD2_it60.h.
|
static |
Definition at line 35 of file GxEPD2_it60.h.
|
static |
Definition at line 29 of file GxEPD2_it60.h.
|
static |
Definition at line 31 of file GxEPD2_it60.h.
|
static |
Definition at line 30 of file GxEPD2_it60.h.
|
static |
Definition at line 27 of file GxEPD2_it60.h.
|
static |
Definition at line 28 of file GxEPD2_it60.h.
|
static |
Definition at line 36 of file GxEPD2_it60.h.
|
static |
Definition at line 34 of file GxEPD2_it60.h.
|
static |
Definition at line 33 of file GxEPD2_it60.h.
|
static |
Definition at line 37 of file GxEPD2_it60.h.
|
static |
Definition at line 38 of file GxEPD2_it60.h.
|
static |
Definition at line 32 of file GxEPD2_it60.h.
|
static |
Definition at line 41 of file GxEPD2_it60.h.
|
static |
Definition at line 26 of file GxEPD2_it60.h.