ESPHome 2026.5.0
Loading...
Searching...
No Matches
pcf8574_display.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::lcd_pcf8574 {
9
10class PCF8574LCDDisplay;
11
13
15 public:
16 void set_writer(pcf8574_lcd_writer_t &&writer) { this->writer_ = std::move(writer); }
17 void setup() override;
18 void dump_config() override;
19 void backlight();
20 void no_backlight();
21
22 protected:
23 bool is_four_bit_mode() override { return true; }
24 void write_n_bits(uint8_t value, uint8_t n) override;
25 void send(uint8_t value, bool rs) override;
26
27 void call_writer() override { this->writer_(*this); }
28
29 // Stores the current state of the backlight.
32};
33
34} // namespace esphome::lcd_pcf8574
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
void set_writer(pcf8574_lcd_writer_t &&writer)
void send(uint8_t value, bool rs) override
void write_n_bits(uint8_t value, uint8_t n) override