Page 2 of 2

Re: ILI9341 seems to work in new firmware

Posted: 01 May 2021, 12:19
by qwerty_21
When i send command for example: control?cmd=tftcmd,clear,green

or: tft,txtfull,0,0,2,BLACK,Utomhus temperatur [imp#t] C

it shows on display: Utomhus temperatur [imp


I`m trying rule found in topic:

on Clock#Time=All,00:01 do //update every 1min

control?cmd=tft,txtfull,2,5,2,RED,[display#dimnik]

endon

But with this rule nothing happened


and json:

{"System":{
"Build":20112,
"Git Build":"",
"System Libraries":"ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support",
"Plugin Count":55,
"Plugin Description":"[Normal]",
"Local Time":"2021-05-01 12:07:44",
"Unit Number":0,
"Unit Name":"display",
"Uptime":13,
"Last Boot Cause":"Manual reboot",
"Reset Reason":"External System",
"Load":26.56,
"Load LC":253,
"CPU Eco Mode":"false",
"Heap Max Free Block":13776,
"Heap Fragmentation":12,
"Free RAM":15728


"Sensors":[
{
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":60,
"Type":"Display - TFT 2.4 inches ILI9341 [TESTING]",
"TaskName":"tft",
"TaskDeviceNumber":95,
"TaskEnabled":"true",
"TaskNumber":1
},
{
"TaskValues": [
{"ValueNumber":1,
"Name":"dimnik",
"NrDecimals":2,
"Value":22.00
},
{"ValueNumber":2,
"Name":"Pec",
"NrDecimals":2,
"Value":22.50
},
{"ValueNumber":3,
"Name":"Value3",
"NrDecimals":2,
"Value":0.00
},
{"ValueNumber":4,
"Name":"Value4",
"NrDecimals":2,
"Value":0.00
}],
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":60,
"Type":"Generic - MQTT Import",
"TaskName":"display",
"TaskDeviceNumber":37,
"TaskEnabled":"true",
"TaskNumber":2
}
],
"TTL":60000
}

Thanks
Regards

Re: ILI9341 seems to work in new firmware

Posted: 01 May 2021, 13:08
by Ath
qwerty_21 wrote: 01 May 2021, 12:19 When i send command for example: control?cmd=tftcmd,clear,green

or: tft,txtfull,0,0,2,BLACK,Utomhus temperatur [imp#t] C

it shows on display: Utomhus temperatur [imp
It needs some extra quotes, as a space is also an argument separator:

Code: Select all

tft,txtfull,0,0,2,BLACK,"Utomhus temperatur [imp#t] C"
qwerty_21 wrote: 01 May 2021, 12:19 I`m trying rule found in topic:

on Clock#Time=All,00:01 do //update every 1min

control?cmd=tft,txtfull,2,5,2,RED,[display#dimnik]

endon

But with this rule nothing happened
The control?cmd= prefix should not be in the rules, that's the syntax for the ESP web server to handle commands, the rule should be like this:

Code: Select all

on Clock#Time=All,00:01 do //update every 1min
  tft,txtfull,2,5,2,RED,"[display#dimnik]"
endon
Quotes can be added here too, anticipating on extra text to be added ;)

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 21:10
by sartam
Hi all. When updating ESP 32 firmware from March 28 to April 27, the ILI9341 display stops working. When flashing back to the firmware from March 28, the display starts working again. What could be the reason? I use the firmware with the label "display"

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 21:13
by TD-er
Does this plugin/display need a PWM signal on a pin to dim the backlight?
If so, then it is fixed in later (test) builds.
I plan on making a new build this weekend, but you can already download one from the GitHubActions test builds (need an account on GitHub to download them)

For example: https://github.com/letscontrolit/ESPEas ... 2480918311

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 21:41
by sartam
TD-er wrote: 11 Jun 2022, 21:13 Does this plugin/display need a PWM signal on a pin to dim the backlight?
If so, then it is fixed in later (test) builds.
I plan on making a new build this weekend, but you can already download one from the GitHubActions test builds (need an account on GitHub to download them)

For example: https://github.com/letscontrolit/ESPEas ... 2480918311
No, PWM signal is not needed. When connecting a backlight to the GPIO, it glows dimly even at 100% PWM. Here the problem is different. The display does not show information when updating the firmware to April. Works on March firmware.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 21:45
by Ath
Still update to that Github build, or even this one https://github.com/letscontrolit/ESPEas ... 2481020833 that has the latest features and a bunch of extra fonts that could use some testing ;)

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 21:48
by Ath
And please update using the serial update-route instead of OTA, then some updated settings and the latest Espressiff bootloader will be applied.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 22:04
by sartam
Ath wrote: 11 Jun 2022, 21:45 Still update to that Github build, or even this one https://github.com/letscontrolit/ESPEas ... 2481020833 that has the latest features and a bunch of extra fonts that could use some testing ;)
Thank you. I'm going to try now.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 22:15
by sartam
Ath wrote: 11 Jun 2022, 21:48 And please update using the serial update-route instead of OTA, then some updated settings and the latest Espressiff bootloader will be applied.
Hmm... This is the firmware I'm using. This is where the display doesn't work.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 22:24
by TD-er
What exact filename is shown on the sysinfo page?
Just to make sure the flash was actually successful.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 22:31
by sartam
TD-er wrote: 11 Jun 2022, 22:24 What exact filename is shown on the sysinfo page?
Just to make sure the flash was actually successful.
Image

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 22:37
by TD-er
Thus it was not updated if you used one of the latest GitHub test builds.

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 23:05
by sartam
TD-er wrote: 11 Jun 2022, 22:37 Thus it was not updated if you used one of the latest GitHub test builds.
Hooray! Earned!

Re: ILI9341 seems to work in new firmware

Posted: 11 Jun 2022, 23:27
by sartam
Another question. Are there fonts with Russian letters? If not, is it possible to make such a font?

Re: ILI9341 seems to work in new firmware

Posted: 12 Jun 2022, 09:25
by Ath
At the moment only ascii characters are available, and in the default font also some special characters, but adding special characters, or even complete character sets, is a) quite hard to engineer, and b) takes a lot of space in the .bin files, so it won't be available in the regularly provided builds.

Re: ILI9341 seems to work in new firmware

Posted: 12 Jun 2022, 09:26
by Ath
sartam wrote: 11 Jun 2022, 23:05 Hooray! Earned!
Great you git it working! :)

Re: ILI9341 seems to work in new firmware

Posted: 13 Jun 2022, 07:01
by sartam
Ath wrote: 12 Jun 2022, 09:25 At the moment only ascii characters are available, and in the default font also some special characters, but adding special characters, or even complete character sets, is a) quite hard to engineer, and b) takes a lot of space in the .bin files, so it won't be available in the regularly provided builds.
OK. It's clear. Maybe we can do it like this. I am rather weak in programming, but I can spend a lot of time on mechanical work. 1. In fact, there are not many Cyrillic letters that differ from the Latin alphabet. 2. If dear colleagues tell me where to add the missing characters in the code, then I am ready to spend as much time as necessary. Letters: Б, Г, Д, Ж, З, И, Л, П, Ф, Ц, Ш, Щ, Э, Ю, Я, Ь.