Waveshare E-Paper Display

API Reference

class WaveshareEPaper : public PollingComponent, public SPIDevice, public display::DisplayBuffer

Subclassed by display::WaveshareEPaper2P7In, display::WaveshareEPaper4P2In, display::WaveshareEPaper7P5In, display::WaveshareEPaperTypeA

Public Functions

WaveshareEPaper(SPIComponent *parent, GPIOPin *cs, GPIOPin *dc_pin, uint32_t update_interval)
float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

Return
The setup priority of this component

void set_reset_pin(const GPIOOutputPin &reset)
void set_busy_pin(const GPIOInputPin &busy)
bool msb_first()
void command(uint8_t value)
void data(uint8_t value)
bool wait_until_idle_()
virtual void display() = 0
void update()
void fill(int color)

Fill the entire screen with the given color.

Protected Functions

void HOT display::WaveshareEPaper::draw_absolute_pixel_internal_(int x, int y, int color)
void setup_pins()
uint32_t get_buffer_length()
bool high_speed()

Protected Attributes

GPIOPin *reset_pin_ = {nullptr}
GPIOPin *dc_pin_
GPIOPin *busy_pin_ = {nullptr}
enum display::WaveshareEPaperTypeAModel

Values:

WAVESHARE_EPAPER_1_54_IN = 0
WAVESHARE_EPAPER_2_13_IN
WAVESHARE_EPAPER_2_9_IN
class WaveshareEPaperTypeA : public display::WaveshareEPaper

Public Functions

WaveshareEPaperTypeA(SPIComponent *parent, GPIOPin *cs, GPIOPin *dc_pin, WaveshareEPaperTypeAModel model, uint32_t update_interval)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void dump_config()
void HOT display::WaveshareEPaperTypeA::display()
void set_full_update_every(uint32_t full_update_every)

Protected Functions

void write_lut_(const uint8_t *lut)
int get_width_internal_()
int get_height_internal_()

Protected Attributes

uint32_t full_update_every_ = {30}
uint32_t at_update_ = {0}
WaveshareEPaperTypeAModel model_
enum display::WaveshareEPaperTypeBModel

Values:

WAVESHARE_EPAPER_2_7_IN = 0
WAVESHARE_EPAPER_4_2_IN
WAVESHARE_EPAPER_7_5_IN
class WaveshareEPaper2P7In : public display::WaveshareEPaper

Public Functions

WaveshareEPaper2P7In(SPIComponent *parent, GPIOPin *cs, GPIOPin *dc_pin, uint32_t update_interval)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void HOT display::WaveshareEPaper2P7In::display()
void dump_config()

Protected Functions

int get_width_internal_()
int get_height_internal_()
class WaveshareEPaper4P2In : public display::WaveshareEPaper

Public Functions

WaveshareEPaper4P2In(SPIComponent *parent, GPIOPin *cs, GPIOPin *dc_pin, uint32_t update_interval)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void HOT display::WaveshareEPaper4P2In::display()
void dump_config()

Protected Functions

int get_width_internal_()
int get_height_internal_()
class WaveshareEPaper7P5In : public display::WaveshareEPaper

Public Functions

WaveshareEPaper7P5In(SPIComponent *parent, GPIOPin *cs, GPIOPin *dc_pin, uint32_t update_interval)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void HOT display::WaveshareEPaper7P5In::display()
void dump_config()

Protected Functions

int get_width_internal_()
int get_height_internal_()