ESPHome 2026.1.4
Loading...
Searching...
No Matches
epaper_spi_mono.h
Go to the documentation of this file.
1#pragma once
2
3#include "epaper_spi.h"
4
5namespace esphome::epaper_spi {
9class EPaperMono : public EPaperBase {
10 public:
11 EPaperMono(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence,
12 size_t init_sequence_length)
13 : EPaperBase(name, width, height, init_sequence, init_sequence_length, DISPLAY_TYPE_BINARY) {
14 this->buffer_length_ = (width + 7) / 8 * height; // 8 pixels per byte, rounded up
15 }
16
17 protected:
18 void refresh_screen(bool partial) override;
19 void power_on() override {}
20 void power_off() override{};
21 void deep_sleep() override;
22 bool reset() override;
23 virtual void set_window();
24 bool transfer_data() override;
25 bool send_red_{true};
26};
27
28} // namespace esphome::epaper_spi
A class for monochrome epaper displays.
void refresh_screen(bool partial) override
EPaperMono(const char *name, uint16_t width, uint16_t height, const uint8_t *init_sequence, size_t init_sequence_length)