ILI9341 seems to work in new firmware

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
qwerty_21
Normal user
Posts: 11
Joined: 24 Apr 2021, 11:54

Re: ILI9341 seems to work in new firmware

#51 Post by qwerty_21 » 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


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

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ILI9341 seems to work in new firmware

#52 Post by Ath » 01 May 2021, 13:08

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 ;)
/Ton (PayPal.me)

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#53 Post by sartam » 11 Jun 2022, 21:10

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"

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ILI9341 seems to work in new firmware

#54 Post by TD-er » 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

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#55 Post by sartam » 11 Jun 2022, 21:41

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.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ILI9341 seems to work in new firmware

#56 Post by Ath » 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 ;)
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ILI9341 seems to work in new firmware

#57 Post by Ath » 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.
Last edited by Ath on 11 Jun 2022, 22:07, edited 1 time in total.
/Ton (PayPal.me)

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#58 Post by sartam » 11 Jun 2022, 22:04

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.

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#59 Post by sartam » 11 Jun 2022, 22:15

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ILI9341 seems to work in new firmware

#60 Post by TD-er » 11 Jun 2022, 22:24

What exact filename is shown on the sysinfo page?
Just to make sure the flash was actually successful.

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#61 Post by sartam » 11 Jun 2022, 22:31

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
Attachments
Безымянный.png
Безымянный.png (192.15 KiB) Viewed 2021 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ILI9341 seems to work in new firmware

#62 Post by TD-er » 11 Jun 2022, 22:37

Thus it was not updated if you used one of the latest GitHub test builds.

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#63 Post by sartam » 11 Jun 2022, 23:05

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!

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#64 Post by sartam » 11 Jun 2022, 23:27

Another question. Are there fonts with Russian letters? If not, is it possible to make such a font?

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ILI9341 seems to work in new firmware

#65 Post by Ath » 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.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ILI9341 seems to work in new firmware

#66 Post by Ath » 12 Jun 2022, 09:26

sartam wrote: 11 Jun 2022, 23:05 Hooray! Earned!
Great you git it working! :)
/Ton (PayPal.me)

sartam
Normal user
Posts: 40
Joined: 13 Mar 2022, 21:25

Re: ILI9341 seems to work in new firmware

#67 Post by sartam » 13 Jun 2022, 07:01

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: Б, Г, Д, Ж, З, И, Л, П, Ф, Ц, Ш, Щ, Э, Ю, Я, Ь.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests