Bug GLCD ILI9341

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
berubec
Posts: 18
Joined: Wed Oct 22, 2014 12:32 pm
Been thanked: 6 times
Contact:

Bug GLCD ILI9341

Post by berubec »

Small bug found with the ILI9341 component. The CS pin is always activate (Low) after initialise with component macro. The screen intermittently freezes when CS pin stay activate (Low). I have try to deactivate (High) the CS pin after each call component macro and now all work fine. Also SCL pin is always High after call component macro but in serial interface protocole the SCL pin is Low after send data but LCD work fine.
Attachments
ILI9341_Timing.pdf
(58.47 KiB) Downloaded 194 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Bug GLCD ILI9341

Post by Benj »

Hello,

Many thanks for letting us know of the issue.

I've had a quick go at adding the chip select toggle without impacting the speed of the display too much. Would you mind having a quick look to make sure the problem is now fixed and reporting back how you get on.

Simply copy the attached file into your "Flowcode 7/components" folder and restart Flowcode if you have it running.
gLCD_ILI9341.fcpx
(9.86 KiB) Downloaded 217 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Bug GLCD ILI9341

Post by jgu1 »

Hi Ben!

I have made a program with a GPS and a SHT21 temp and hum sensor. Of course with the old component file, and the program/display work fine. But then I saw your new updated component, I updated in the component in the directory.

After that. I tryed to download my program (to Arduino) again, but now it doesn´t work. It initialise ok, but It does not write write texts nor write data in display from my SHT21 and GPS. It can make graphics, squares, circles ect :( fortunately I have saved the old file). I try to use the old component file again and then it work again :)

I think there still are a bug in the new component file. Please

Br jorgen

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Bug GLCD ILI9341

Post by Benj »

Thanks Jorgen,

Hopefully this one now solves the problem, I had missed the CS pins toggle from a couple of macros relating to printing text.
gLCD_ILI9341.fcpx
(9.86 KiB) Downloaded 214 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Bug GLCD ILI9341

Post by jgu1 »

Hi again Ben!

Sorry. Now it look like it not can delete the screen.Old text will not be deleted, it writes on old text . And ithe display is slowly.

Br. Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Bug GLCD ILI9341

Post by jgu1 »

Hi Ben!

Something new concerning this isse? :wink: please

Br. Jorgen

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Bug GLCD ILI9341

Post by LeighM »

it writes on old text
Is transparency off?
transparent.jpg
transparent.jpg (16.26 KiB) Viewed 5717 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Bug GLCD ILI9341

Post by Benj »

Hi Jorgen,

Did Leighs suggestion help? If not then can you go into more detail on what exactly you're seeing.
Sorry. Now it look like it not can delete the screen.Old text will not be deleted, it writes on old text . And ithe display is slowly.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Bug GLCD ILI9341

Post by jgu1 »

Hi Leigh and Ben!

I have probably not explained correctly :D

First, I have made little project with ILI9341 with a SHT21 and a GPS module. With the "old "ILI9341 component it work. I read temperature and humidity from the SHT21 and I read the time an date from GPS shown in the ILI9341 display. Created in FC7 and work perfect, glad, all component seem to be ok :wink:
So I think the settings for font and transparant is ok.

But, suddently;

Then I saw Berubeq discovered a bug concerning the CS pin. > Ben, you tryed to fix this, (and of course I also want the perfect coponent file in my FC7 :lol: ) and I tested the new component with my project, and downloaded in my Arduino.
But after that it was not possible to write text in the display.

Then you made a new correction again and wrote:
"Hopefully this one now solves the problem, I had missed the CS pins toggle from a couple of macros relating to printing text".
After this new correction again:

The text write on top of each other, and it look like old tekst/data not is deleted anymore. It is loooong time to start up. And I still use the same program without any changes.
But when I use the old component again, it work again.

Hope it make sense. Nice evening to your both.. Br Jorgen
Attachments
Perfect Old component.JPG
Perfect Old component.JPG (57.08 KiB) Viewed 5708 times
New component.JPG
New component.JPG (54.14 KiB) Viewed 5708 times
GPS_test3Til Urprojekt.V1.05fcfx.fcfx
(64.76 KiB) Downloaded 182 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Bug GLCD ILI9341

Post by Benj »

Thanks Jorgen much clearer now :D

Ok I have hopefully got rid of the new kinks in the component and also hopefully also added a bit of an additional speed increase.
gLCD_ILI9341.fcpx
(9.84 KiB) Downloaded 227 times
As always let us know how you get on.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Bug GLCD ILI9341

Post by jgu1 »

Hi ben!
Perfect, now it seems to work. I also sense it has become a bit faster. Thanks again Ben :D

By the way, a nice little display, and hopefully now a perfect Ili9341 component :wink:

Br Jorgen

berubec
Posts: 18
Joined: Wed Oct 22, 2014 12:32 pm
Been thanked: 6 times
Contact:

Re: Bug GLCD ILI9341

Post by berubec »

Hi Benj,
The display work fine and CS pin stay High level. Now test for long time running.
Thanks
Also thanks to jgu1 to have testing all modified component.

Post Reply