mirror of
https://github.com/esphome/esphome.git
synced 2026-03-04 03:38:20 -07:00
Add backlight handling for lcd_pcf8574 (#573)
* Add backlight handling for lcd_pcf8574 Switch the backlight on or off by calling id(mydisplay).backlight() or id(mydisplay).no_backlight() in lamda functions (assuming mydisplay is the custom id for the LCD). * Use abstract method Co-authored-by: Attila Darazs <attila@darazs.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
committed by
Otto Winter
parent
ebe64e24f1
commit
30a542e763
@@ -107,7 +107,7 @@ void LCDDisplay::update() {
|
||||
for (uint8_t i = 0; i < this->rows_ * this->columns_; i++)
|
||||
this->buffer_[i] = ' ';
|
||||
|
||||
this->writer_(*this);
|
||||
this->call_writer();
|
||||
this->display();
|
||||
}
|
||||
void LCDDisplay::command_(uint8_t value) { this->send(value, false); }
|
||||
|
||||
Reference in New Issue
Block a user