STM32-SPI-ILI9488

Any bugs you encounter with Flowcode should be discussed here.
BenR
Matrix Staff
Posts: 1734
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: STM32-SPI-ILI9488

Post by BenR »

Hello,

Currently I've not made any progress, I've looked at it again several times and so far nothing I do makes any difference. Even the data readback is not working so there could be something fundemental I'm missing. I've got it hooked up to a digital analyser so I know the comms out to the display looks ok. Next step might be to try it in Arduino with the various libs there and see if I can make it work that way, that might give me a stable base to base things on.

mehmet64
Posts: 40
Joined: Mon Apr 05, 2021 1:59 am
Has thanked: 8 times
Been thanked: 4 times

Re: STM32-SPI-ILI9488

Post by mehmet64 »

Hello Ben
Thank you very much for your efforts to fix the problem. When do you think the problem will be fixed? Because I need this component for one of projects.

BenR
Matrix Staff
Posts: 1734
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: STM32-SPI-ILI9488

Post by BenR »

Hello,

I've finally got the screen working correctly and pushed a new version of the component to the library update system. I'm still not happy with it as it seems to be very dark but I've been through a lot of the settings trying different values and nothing seems to make any difference. At least it's doing something now.

Let me know how you are getting on if you have a go.

jgu1
Posts: 613
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 506 times
Been thanked: 132 times

Re: STM32-SPI-ILI9488

Post by jgu1 »

Hii Ben!

Big progress, it work now :D

Yes you are rigth, little dark? I have test with a ESP32, compared with ili9341 3.2" it also little slow. I could imagine it´s because it is bigger?
The Ili9341 3.2" is really fast with the maximium of the prescaler at 30 mhz (max) and also max for the Ili9488 3.5".

But anyway, big progress, hope you can fix the "darkness" too :D

So far, many thank´s for your great job Ben.

att. My test...

Br jorgen
Attachments
Ili9488.fcfx
(11.41 KiB) Downloaded 109 times

jgu1
Posts: 613
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 506 times
Been thanked: 132 times

Re: STM32-SPI-ILI9488

Post by jgu1 »

Wow Ben.. like this, after new update, now ligth and clear, perfect. :D :D

Thank you......... ;)

Br jorgen

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: STM32-SPI-ILI9488

Post by stefan.erni »

Hi Jorgen

You mentioned that you used an esp32 with an ili display. Which board was that?
I have few small problems with my board and the display. I would like to fix these problems.
It would be useful for me to know if your hardware is working properly or has the same.
The problems are only
light dark is reversed (also with the colors)
X,Y values are partly reversed
reset pin is not working

In general, the display works very well.
I use ESP32. If I use ILI9341 work very nice including the touch...
regards

Stefan

BenR
Matrix Staff
Posts: 1734
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: STM32-SPI-ILI9488

Post by BenR »

Hello,

Glad the 9488 is working better now. Took some digging but think we got there in the end.
compared with ili9341 3.2" it also little slow. I could imagine it´s because it is bigger?
The ILI9341 is 240 x 320 (76,800 pixels) and allows 2 byte per pixel 16-bit colours via SPI (153,600 bytes).
The ILI9488 is 320 x 480 (153,600 pixels) and for some reason forces 3 byte per pixel 18-bit colours via SPI (460,800 bytes).

So that's 3x the amount of bytes it needs to send for a clear screen and probably explains it being noticably slower.
With short wires and/or properly terminated wires it might be possible to drive the SPI to higher speeds.
light dark is reversed (also with the colors)
X,Y values are partly reversed
The ILI9341 should be ok on ESP, both the SPI and Parrallel versions have been tested. There is maybe an invert colour property to allow you to invert the display if the colours are inverted. I think there is also an X and Y flip property to sort out any mirroring.
reset pin is not working
This seems odd, which pin are you using to drive the reset?

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: STM32-SPI-ILI9488

Post by stefan.erni »

Hi Ben

Ok. It's not the reset pin. It's the backlight pin B0. If I set the pin by set port, the display is working.

Flip x, Flip y I saw the propertie and it's fine now.

Color:

I have the cyan color on my display if i expect red.
ili_2022-07-15_12-15-20.jpg
ili_2022-07-15_12-15-20.jpg (76.06 KiB) Viewed 3599 times


If it's possible to add this color invert command ?

or few commands more like this?

And a remark: On my board is a ILI9342 controller and it's working fine even with the ILI9341 component

regards

Stefan
ili comand_2022-07-15_12-06-41.jpg
ili comand_2022-07-15_12-06-41.jpg (63.37 KiB) Viewed 3599 times

BenR
Matrix Staff
Posts: 1734
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: STM32-SPI-ILI9488

Post by BenR »

Hopefully both issues solved for you now via library updates.

I've fixed the LED pin problem and also added a new property to allow the colour to be inverted/uninverted.

I can expose the send reg and send data macros if that would help to allow for full control.

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: STM32-SPI-ILI9488

Post by stefan.erni »

Hi BEN

It's perfect now. Thanks a lot.
Colors are correct and and the pin is working.

Yes please expose the "send reg and send data macros"
I hope I can set some power save mode for the display.

regards

Stefan

Post Reply