ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
epaper_spi_ssd1677_bwr.cpp
Go to the documentation of this file.
2
3namespace esphome::epaper_spi {
4
7 return false;
8 this->command(0x12); // SWRESET; the INITIALISE state waits for busy to clear
9 return true;
10}
11
13 const uint16_t x_end = this->width_ - 1;
14 const uint16_t y_first = this->offset_height_ + this->height_ - 1;
15 const uint16_t y_last = this->offset_height_;
16 this->cmd_data(0x44, {0x00, 0x00, (uint8_t) x_end, (uint8_t) (x_end >> 8)});
17 // Y runs down from the last gate, to match data entry mode 0x01
18 this->cmd_data(0x45, {(uint8_t) y_first, (uint8_t) (y_first >> 8), (uint8_t) y_last, (uint8_t) (y_last >> 8)});
19 this->cmd_data(0x4E, {0x00, 0x00});
20 this->cmd_data(0x4F, {(uint8_t) y_first, (uint8_t) (y_first >> 8)});
21}
22
24 this->cmd_data(0x22, {0xF7});
25 this->command(0x20);
26}
27
28} // namespace esphome::epaper_spi
void command(uint8_t value)
void cmd_data(uint8_t command, const uint8_t *ptr, size_t length)