ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
epaper_spi_inkplate2.cpp
Go to the documentation of this file.
1// Reference: https://github.com/SolderedElectronics/Inkplate-Arduino-library (src/boards/Inkplate2)
2
4#include "esphome/core/log.h"
5
6namespace esphome::epaper_spi {
7
8ESPHOME_LOG_TAG(TAG, "epaper_spi.inkplate2");
9
11 // Power-on (0x04) leads the init sequence, so there is nothing to do here.
12 ESP_LOGV(TAG, "Power on");
13}
14
16 ESP_LOGV(TAG, "Power off");
17 this->cmd_data(0x50, {0xF7}); // VCOM and data interval
18 this->command(0x02); // power off
19}
20
22 ESP_LOGV(TAG, "Refresh screen"); // full refresh only; partial is unused
23 // Send 0x11 then 0x12 back-to-back: 0x11 raises busy until the refresh finishes, so waiting for idle
24 // between them (as the state machine does between states) would add a ~16s stall.
25 this->cmd_data(0x11, {0x00}); // stop data transfer
26 this->command(0x12); // display refresh
27}
28
30 ESP_LOGV(TAG, "Deep sleep");
31 this->cmd_data(0x07, {0xA5});
32}
33
34} // namespace esphome::epaper_spi
void command(uint8_t value)
void cmd_data(uint8_t command, const uint8_t *ptr, size_t length)
void refresh_screen(bool partial) override
ESPHOME_LOG_TAG(TAG, "display")