GLCD ILI9341

Moderator: Benj

Post Reply
Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Contact:

GLCD ILI9341

Post by Alkaline »

Hello

I have some problems with the ili9341 display and would like to understand if it depends on the single display or it happens to everyone.

I am currently using this display https://www.buydisplay.com/color-2-4-in ... serial-spi

the interface is 8 bit parallel.

In simulation everything is ok while on the hardware I have a rotated and corrupt image.

To eliminate vertical lines I have to set the display area differently by inverting the widht and hight dimensions.

But at that point I have no correlation between the image drawn on the real display and the simulation

With the latest version if I set the rotation on the number 3 I get only the black screen
Attachments
20200417_112533.jpg
20200417_112533.jpg (82.48 KiB) Viewed 1199 times
20200417_111703.jpg
20200417_111703.jpg (154.95 KiB) Viewed 1199 times
DD.fcfx
(19.99 KiB) Downloaded 47 times

User avatar
faveremario
Posts: 28
Joined: Sat Jun 02, 2012 6:08 pm
Contact:

Re: GLCD ILI9341

Post by faveremario »

Hi Alkaline

I just started experimenting with the ILI9341 (SPI).

Be careful to select the wright component. Do not select the SPI-component when using the 8-bit // interface and vice-verse.

The last image shown is typical for miss-initing the TFT. I suggest to switch XY-dimensions in the component:
H : 320 (in stead of 240)
W : 240 (in stead of 320)

Hope this helps a little.

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Contact:

Re: GLCD ILI9341

Post by Alkaline »

Hello

I confirm that if I invert the coordinates the problem disappears

In the last few weeks I have tried the various versions and the one I can use correctly is the n12.

Both in simulation and in hardware the images and numbers are correctly represented.

Performance has improved compared to version 10 especially on STM

In versions after 12 I can't rotate the screen and write numbers or text. In simulation it works but in hardware it does not.

Let me know if it does the same to you even if you use the SPI interface

User avatar
faveremario
Posts: 28
Joined: Sat Jun 02, 2012 6:08 pm
Contact:

Re: GLCD ILI9341

Post by faveremario »

Hi

I do not see what you mean by n10 or n12.... ?
Screen rotation works for me.
My test-environment : PIC18F4455

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Contact:

Re: GLCD ILI9341

Post by Alkaline »

Hello

I am referring to the version of the glcd component as photo attached.

The problem of rotation is the following.

For example I set the value 3 to the rotation, I want to write a number the number on the display, the number will not be drawn.
Attachments
Flow_upd.jpg
Flow_upd.jpg (111.91 KiB) Viewed 912 times

User avatar
faveremario
Posts: 28
Joined: Sat Jun 02, 2012 6:08 pm
Contact:

Re: GLCD ILI9341

Post by faveremario »

This is what I get....

Component version 2.0
Attachments
IMG_20200517_094453.jpg
IMG_20200517_094453.jpg (79.6 KiB) Viewed 901 times
Capture.JPG
Capture.JPG (79.75 KiB) Viewed 901 times

OwenPrice
Posts: 1
Joined: Thu Jan 14, 2021 9:55 am
Contact:

Re: GLCD ILI9341 + Flowcode 9 + Simulation

Post by OwenPrice »

Flowcode 9 In simulation mode has anybody had the following problem and fixed it?


Flowcode 9 + gLCD_ILI9341 + SetBackgroundColour(0,0,0) = White Background

Also,
Flowcode 9 + gLCD_ILI9341 + SetBackgroundColour(255,255,255) = White Background

Thanks
Owen

kersing
Valued Contributor
Valued Contributor
Posts: 1994
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Contact:

Re: GLCD ILI9341

Post by kersing »

Do you actually display anything with that background? Just setting the background does not change the currently displayed information.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

jgu1
Posts: 1304
Joined: Tue Oct 06, 2009 9:39 am
Contact:

Re: GLCD ILI9341

Post by jgu1 »

Hi Owen!

I have just made a testprogram in FC9. It work fine for me.

All color 255 = white
All color 0 = Black

Br jorgen
Attachments
FC9Background.fcfx
(11.92 KiB) Downloaded 2 times

Post Reply