ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
epaper_spi_uc8151.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace esphome::epaper_spi {
6
22 public:
23 EPaperUC8151(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence,
24 size_t init_sequence_length)
25 : EPaperUltraChip(name, width, height, init_sequence, init_sequence_length, DISPLAY_TYPE_BINARY) {}
26
27 protected:
28 bool reset() override;
29 bool initialise(bool partial) override;
30 bool transfer_data() override;
31 void power_on() override;
32 void refresh_screen(bool partial) override;
33 bool after_refresh() override;
34 void power_off() override;
35 // The UC8151 window has one byte for each horizontal bound
36 void set_partial_window(uint16_t x_start, uint16_t x_end, uint16_t y_start, uint16_t y_end) override;
37
38 // Loads the partial-refresh waveform and the settings it needs into the controller registers
40 // Writes the buffer to one plane in time slices, sending `command` first; true once the whole plane is written
41 bool write_plane_(uint8_t command);
42};
43
44} // namespace esphome::epaper_spi
void command(uint8_t value)
Monochrome e-paper displays using the UltraChip UC8151 controller, such as the Good Display GDEW029T5...
bool initialise(bool partial) override
void refresh_screen(bool partial) override
EPaperUC8151(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence, size_t init_sequence_length)
void set_partial_window(uint16_t x_start, uint16_t x_end, uint16_t y_start, uint16_t y_end) override
Shared base for controllers with the UltraChip style command set (UC8151, UC8179, UC8279,...
static void int x_start
Definition display.cpp:61
static void int int y_start
Definition display.cpp:61