22 ESP_LOGV(TAG,
"Refresh screen");
23 this->
cmd_data(0x22, {partial ? (uint8_t) 0xFF : (uint8_t) 0xF7});
30 ESP_LOGV(TAG,
"Deep sleep");
58 (uint8_t) ((this->
x_high_ - 1) / 256)});
61 (uint8_t) ((this->
y_high_ - 1) / 256)});
66 auto start_time =
millis();
77 bytes_to_send.
init(row_length);
82 size_t data_idx = row_start;
83 for (
size_t i = 0; i != row_length; i++) {
87 this->
write_array(&bytes_to_send.front(), row_length);
88 if (
millis() - start_time > MAX_TRANSFER_TIME) {
Fixed-capacity vector - sized once through init() or try_init(); push_back never reallocates This avo...
void command(uint8_t value)
bool is_using_partial_update_() const
bool init_sent_frame_(size_t length)
split_buffer::SplitBuffer buffer_
void cmd_data(uint8_t command, const uint8_t *ptr, size_t length)
virtual bool needs_previous_frame() const
split_buffer::SplitBuffer sent_
size_t current_data_index_
void init_previous_frame_()
void refresh_screen(bool partial) override
virtual size_t sent_frame_length() const
bool transfer_data() override
void deep_sleep() override
virtual void set_window()
void write_array(const uint8_t *data, size_t length)
ESPHOME_LOG_TAG(TAG, "display")
uint32_t IRAM_ATTR HOT millis()