ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
epaper_spi_ssd2677.h
Go to the documentation of this file.
1#pragma once
2
3#include "epaper_spi_gray4.h"
5
7
8#ifdef USE_SENSOR
10#endif
11
12namespace esphome::epaper_spi {
13
26 public:
27 using EPaperUltraChip::EPaperUltraChip;
28
29 void dump_config() override;
30#ifdef USE_SENSOR
31 void set_temperature_sensor(sensor::Sensor *temperature_sensor) { this->temperature_sensor_ = temperature_sensor; }
32#endif
33
34 protected:
35 bool needs_previous_frame() const override { return true; }
36 bool reset() override;
37 bool initialise(bool partial) override;
38 bool transfer_data() override;
39 void power_on() override;
40 void refresh_screen(bool partial) override;
41 void power_off() override;
42 void deep_sleep() override { this->send_deep_sleep_(); }
43
44 // The stream for row y, where mono is that row from mono_row() and row_length is mono_row_length_()
45 void stream_row_(size_t y, const uint8_t *mono, uint8_t *out, size_t row_length);
46 // The reading in whole degrees C, or the default for a missing reading (NAN)
47 static int whole_degrees(float reading);
48 float temperature_reading_() const;
49 // The forced temperature value that selects the full refresh waveform at this temperature
50 virtual uint8_t full_waveform(int temperature) const;
51
52#ifdef USE_SENSOR
54#endif
56};
57
63class EPaperSSD2677Gray4 : public EPaperGray4<EPaperSSD2677> {
64 public:
66
67 protected:
68 uint8_t full_waveform(int temperature) const override;
69};
70
71} // namespace esphome::epaper_spi
Adds a framebuffer of four gray levels to a driver: 2 bits per pixel, 4 per byte, most significant pi...
EPaperGray4(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence, size_t init_sequence_length)
uint8_t full_waveform(int temperature) const override
SSD2677 controller, used by the second version of the Seeed reTerminal Sticky.
static int whole_degrees(float reading)
bool initialise(bool partial) override
void refresh_screen(bool partial) override
bool needs_previous_frame() const override
virtual uint8_t full_waveform(int temperature) const
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
void stream_row_(size_t y, const uint8_t *mono, uint8_t *out, size_t row_length)
Shared base for controllers with the UltraChip style command set (UC8151, UC8179, UC8279,...
Base-class for all sensors.
Definition sensor.h:48
std::vector< uint8_t > & out
Definition gif.cpp:49
uint16_t temperature
Definition sun_gtil2.cpp:12
uint16_t y
Definition tt21100.cpp:6