Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

ILI9341 problem

2 posters

Go down  Message [Page 1 of 1]

1ILI9341 problem Empty ILI9341 problem Thu May 20, 2021 9:10 pm

feri



I tested ILI9341 with the library "Adafruit_ILI9341.h" it works well, the image is clear but it takes a long time to draw it screen about 1 minute.
With the "Ucglib.h" library it is faster but the image is confused and the colors are strange.
regards
Giordano



Last edited by arcachofo on Fri Dec 24, 2021 3:31 am; edited 1 time in total (Reason for editing : Marked as solved (green color))

2ILI9341 problem Empty Re: ILI9341 problem Fri May 21, 2021 6:49 am

arcachofo

arcachofo

I tested ILI9341 with the library "Adafruit_ILI9341.h" it works well, the image is clear but it takes a long time to draw it screen about 1 minute.
How is simulation speed?

With the "Ucglib.h" library it is faster but the image is confused and the colors are strange.
regards
Can you provide a link to that library and some example?

ILI9341 component can still be optimized, not a priority by now, but eventually I will get into it.

3ILI9341 problem Empty Re: ILI9341 problem Fri May 21, 2021 1:24 pm

feri



Library Link:
https://github.com/olikraus/Ucglib_Arduino/releases/tag/1.5.2

I used the example Box3D.
Real Speed 24% bad picture.

Library Link:
https://github.com/adafruit/Adafruit_ILI9341
I used the example graphictest.
while with the library "Adafruit_ILI9341.h" Real Speed 13% good picture.
Regards
Giordano

4ILI9341 problem Empty Re: ILI9341 problem Fri May 21, 2021 7:33 pm

arcachofo

arcachofo

Thanks. I will have a look.

Not sure how the "Ucglib.h" library graphictest should look like, but those color paterns are beautiful hehe.

5ILI9341 problem Empty Re: ILI9341 problem Sat May 22, 2021 1:17 am

feri



6ILI9341 problem Empty Re: ILI9341 problem Sat May 22, 2021 11:27 am

arcachofo

arcachofo

The issue with Ucglib should be solved in 0.4.15 branch Rev 190.
I have not tested it very much so not sure if evrything is working properly.

But I think this library should be even slower as it uses 18 bit RGB pixel mode (3 bytes per pixel), while Adafruit uses 16 bit mode (2 bytes).
The fact that it was faster is sprobably because it was not working properly.

One thing that slows down simulation speed is that SCK output in Arduino Uno is where the board led is connected.
And simulating a led at 8 MHz takes a lot of cpu.
If you use an Atmega328 instead it will run much faster.

Simulating this dispaly will be slow in any case as it is using 8 MHz SPI clock, and no way the simulator can keep that at real time when it is continuously sending data.

A posible solution for this would be implementing some kind of "virtual" SPI conection, the same way that Serial Monitor or Serial Port connections are done.

7ILI9341 problem Empty Re: ILI9341 problem Sat May 22, 2021 10:28 pm

feri



Now with Ucglib the picture is better but there is still a color problem.
I attach screen and test program for arduino
Greetings
Attachments
ILI9341 problem AttachmentUcglib color.png
You don't have permission to download attachments.
(38 Kb) Downloaded 0 times
ILI9341 problem AttachmentColor_IL9341.zip
You don't have permission to download attachments.
(1 Kb) Downloaded 3 times

8ILI9341 problem Empty Re: ILI9341 problem Sun May 23, 2021 8:09 pm

arcachofo

arcachofo

Now with Ucglib the picture is better but there is still a color problem.
Should be solved in Rev 191.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum