mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Co-authored-by: Nicolas Reinecke <nr@das-labor.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
20 lines
507 B
YAML
20 lines
507 B
YAML
display:
|
|
- platform: sh1122_spi
|
|
cs_pin: ${cs_pin}
|
|
dc_pin: ${dc_pin}
|
|
reset_pin: ${reset_pin}
|
|
brightness: 80%
|
|
pages:
|
|
- id: sh1122_spi_page1
|
|
lambda: |-
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
- id: sh1122_spi_page2
|
|
lambda: |-
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
on_page_change:
|
|
from: sh1122_spi_page1
|
|
to: sh1122_spi_page2
|
|
then:
|
|
lambda: |-
|
|
ESP_LOGD("display", "1 -> 2");
|