ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
epaper_spi_ssd1677_gray4.h
Go to the documentation of this file.
1#pragma once
2
3#include "colorconv.h"
5
6namespace esphome::epaper_spi {
7
29 public:
30 EPaperSSD1677Gray4(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence,
31 size_t init_sequence_length)
32 : EPaperSSD1677(name, width, height, init_sequence, init_sequence_length, DISPLAY_TYPE_GRAYSCALE, 2) {}
33
34 void fill(Color color) override;
35 void draw_pixel_at(int x, int y, Color color) override;
36
37 protected:
38 // A partial update if partial updates are enabled and this is not a full one.
39 bool is_partial_push_() const { return this->update_count_ != 0 && this->sent_.is_valid(); }
40 void plane_row(size_t y, uint8_t *out) override;
41 void refresh_screen(bool partial) override;
42 bool transfer_data() override;
43};
44
45} // namespace esphome::epaper_spi
Four-level grayscale for SSD1677 panels.
EPaperSSD1677Gray4(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence, size_t init_sequence_length)
void plane_row(size_t y, uint8_t *out) override
void draw_pixel_at(int x, int y, Color color) override
Monochrome SSD1677 with partial refreshes that leave unchanged pixels alone.
std::vector< uint8_t > & out
Definition gif.cpp:49
uint16_t x
Definition tt21100.cpp:5
uint16_t y
Definition tt21100.cpp:6