Files
esphome/tests/components/sh1122_spi/common.yaml
T
0c43d689d7 [sh1122] Add OLED display driver (#15295)
Co-authored-by: Nicolas Reinecke <nr@das-labor.org>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
2026-10-12 13:11:51 -10:00

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");