Page 1 of 1

Display - TFT ILI934x/ILI948x

Posted: 28 Feb 2025, 10:50
by The-Holgi
Hello,I have the ILI9488 on ESPEasy build mega-20241222. Almost everything works well. Dimming via the command line or rules doesn't work.
It works via the device tab. The values ​​as set via rules are also displayed in the device, but the brightness only changes when you click submit in the device.
So dimming via rules is not possible.
What can I do?

Re: Display - TFT ILI934x/ILI948x

Posted: 28 Feb 2025, 11:31
by Ath
I'll have a look at the code, later today, to see if something needs to be fixed. :?

Re: Display - TFT ILI934x/ILI948x

Posted: 28 Feb 2025, 21:34
by Ath
I've found that this was indeed not working as intended, so made a PR to fix that: #5296

What build do you have installed, so I can upload a fixed build here?

Re: Display - TFT ILI934x/ILI948x

Posted: 28 Feb 2025, 22:57
by The-Holgi
Hello, i have this installed:
ESP_Easy_mega_20250224_max_ESP32s3_16M8M_LittleFS_OPI_PSRAM_CDC_ETH
Git Build:⋄ HEAD_b5f9e7b
Thank you!

Re: Display - TFT ILI934x/ILI948x

Posted: 28 Feb 2025, 23:35
by Ath
A testbuild for PR #5269:

Re: Display - TFT ILI934x/ILI948x

Posted: 01 Mar 2025, 10:11
by The-Holgi
Tank you so much for the fast help.
It works :mrgreen:
Greetings Holger

Re: Display - TFT ILI934x/ILI948x

Posted: 01 Mar 2025, 10:17
by Ath
Great, thanks for the feedback :)

Re: Display - TFT ILI934x/ILI948x

Posted: 01 Mar 2025, 10:22
by The-Holgi
Another question, is it possible to only change the background color via rules? I didn't find anything about it.
I want to change the background color depending on a temperature sensor

Re: Display - TFT ILI934x/ILI948x

Posted: 01 Mar 2025, 10:51
by Ath
The-Holgi wrote: 01 Mar 2025, 10:22 Another question, is it possible to only change the background color via rules? I didn't find anything about it.
I want to change the background color depending on a temperature sensor
Hm, that's currently not supported, neither in the commands, nor technically, as the current on-screen data isn't buffered (in ESPEasy, because of memory restrictions), and the background color is applied before or during writing text (when different from the text/foreground color. If the fg- and bg-colors are the same, the background becomes transparent during the write, so you can write on a preloaded bitmap).

As an alternative, you can have a look at the 'windowing' subcommands (defwin, delwin, win) that can be used to confine writing/drawing commands to a specific screen area. You can then redraw only that part of the screen, after changing the background color. This will probably cause some screen-flicker.

Re: Display - TFT ILI934x/ILI948x

Posted: 01 Mar 2025, 11:10
by The-Holgi
Thanks for the explanation. It's not that important to me now. Was just an idea.