mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
[hub75] add set_rotation and get_rotation methods (#13921)
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
J. Nick Koston
parent
6bc19d2a1a
commit
254690100c
@@ -37,3 +37,10 @@ display:
|
||||
}
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
script:
|
||||
- id: rotate_hub75
|
||||
then:
|
||||
- lambda: |-
|
||||
id(my_hub75).set_rotation(display::DISPLAY_ROTATION_180_DEGREES);
|
||||
ESP_LOGD("test", "rotation now %d", static_cast<int>(id(my_hub75).get_rotation()));
|
||||
|
||||
Reference in New Issue
Block a user