strange-v / ha_deck

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

How to change background (bg_480x320) #9

Closed genasoft closed 8 months ago

genasoft commented 8 months ago

Changing the background (online image converter, with colour format of CF-TRUE-COLOR and naming the file bg_480x320 - https://lvgl.io/tools/imageconverter) produces the following error upon compile: /src/esphome/components/hd_device_sc01_plus/hd_device_sc01_plus.cpp.o:(.literal._ZN7esphome9hd_device12HaDeckDevice5setupEv+0x2c): undefined reference to `bg_480x320' If the modified file is replaced with the original file, the error persists. Only deleting the fork and forking the project again works. You can see the fork at: https://github.com/genasoft/ha_deck/tree/main

strange-v commented 8 months ago

I've no problems building and using your fork

example

Have you tried Clean Build Files option?

genasoft commented 8 months ago

Yes, I have. Clean build and it fails at the same place. What is weirder is that if I build from your repo, all goes well. If I fork your repo, the build is OK. But, if I replace the background file, even with the original (the one from your repo), it fails.

genasoft commented 8 months ago

I got it going. I had to go into the docker container and clean up the previous builds. For some reason, from the GUI, the clean is not done complete.

On another note, are there any plans on rotation of the display (from horizontal to vertical)?

strange-v commented 8 months ago

Ahh, I had similar cases during the development, but only after massive changes.

On another note, are there any plans on rotation of the display (from horizontal to vertical)?

Yes. I plan to add a software rotation to the configuration in the next version. For now, you can try suggestions from here.

genasoft commented 8 months ago

Nice. Keep up the awsome work. Thanks