1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Add the on_page_change display trigger (#1687)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Stanislav Meduna
2021-05-23 22:56:04 +02:00
committed by GitHub
parent cccb1a2c9e
commit 072dce340e
4 changed files with 68 additions and 2 deletions

View File

@@ -1874,6 +1874,12 @@ display:
- id: page2
lambda: |-
// Nothing
on_page_change:
from: page1
to: page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");
- platform: ssd1306_spi
model: 'SSD1306 128x64'
cs_pin: GPIO23