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:
authored and Otto Winter committed 2019-06-03 19:36:00 +02:00
1 parent ebe64e24f1
commit 30a542e763
8 files changed
+45 -16

No files matched your search

+1 -1
View File
@@ -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); }