ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
pcf8574_display.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome {
9namespace lcd_pcf8574 {
10
11class PCF8574LCDDisplay;
12
14
16 public:
17 void set_writer(pcf8574_lcd_writer_t &&writer) { this->writer_ = std::move(writer); }
18 void setup() override;
19 void dump_config() override;
20 void backlight();
21 void no_backlight();
22
23 protected:
24 bool is_four_bit_mode() override { return true; }
25 void write_n_bits(uint8_t value, uint8_t n) override;
26 void send(uint8_t value, bool rs) override;
27
28 void call_writer() override { this->writer_(*this); }
29
30 // Stores the current state of the backlight.
33};
34
35} // namespace lcd_pcf8574
36} // namespace esphome
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
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
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7