strange-v / ha_deck

Config-driven Home Assistant dashboard (built on top of ESPHome)
MIT License
150 stars 42 forks source link

how to rotate display? #7

Closed lukedoomer closed 8 months ago

lukedoomer commented 8 months ago

which file and where should I put rotation configuration in?

strange-v commented 8 months ago

It can be done in a few ways, but the easiest should be changing this line https://github.com/strange-v/ha_deck/blob/abe4194daccb51334c9f920e0177760c9e79b3ed/components/hd_device_sc01_plus/hd_device_sc01_plus.cpp#L56

The hardware rotation will be faster, but it also requires rotation of touch points and AFAIR, it isn't handled by the LovyanGFX automatically.