Page 1 of 1

Bug GLCD ILI9341

Posted: Fri Jan 19, 2018 7:28 pm
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.

Re: Bug GLCD ILI9341

Posted: Tue Jan 23, 2018 4:26 pm
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 261 times

Re: Bug GLCD ILI9341

Posted: Thu Jan 25, 2018 6:24 pm
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

Re: Bug GLCD ILI9341

Posted: Fri Jan 26, 2018 1:08 pm
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 295 times

Re: Bug GLCD ILI9341

Posted: Fri Jan 26, 2018 5:37 pm
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

Re: Bug GLCD ILI9341

Posted: Wed Jan 31, 2018 7:02 am
by jgu1
Hi Ben!

Something new concerning this isse? :wink: please

Br. Jorgen

Re: Bug GLCD ILI9341

Posted: Wed Jan 31, 2018 9:46 am
by LeighM
it writes on old text
Is transparency off?
transparent.jpg
transparent.jpg (16.26 KiB) Viewed 6926 times

Re: Bug GLCD ILI9341

Posted: Wed Jan 31, 2018 1:28 pm
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.

Re: Bug GLCD ILI9341

Posted: Wed Jan 31, 2018 7:24 pm
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

Re: Bug GLCD ILI9341

Posted: Thu Feb 01, 2018 11:00 am
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 284 times
As always let us know how you get on.

Re: Bug GLCD ILI9341

Posted: Thu Feb 01, 2018 4:28 pm
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

Re: Bug GLCD ILI9341

Posted: Thu Feb 01, 2018 9:37 pm
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.