Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2040 does not work with ILI9225 #1760

Closed
Bodmer opened this issue Apr 7, 2022 · 1 comment
Closed

RP2040 does not work with ILI9225 #1760

Bodmer opened this issue Apr 7, 2022 · 1 comment

Comments

@Bodmer
Copy link
Owner

Bodmer commented Apr 7, 2022

The RP2040 does not drive the ILI9225 based displays reliably. This has been traced to the ability of the RP2040 to output SPI data values with minimal gaps between bytes/words. The ILI9225 accepts high SPI rates but empirical evidence shows it requires a significant gap between command bytes and any 16 bit data values.

@Bodmer
Copy link
Owner Author

Bodmer commented Apr 7, 2022

I have the ILI9225 working reliably with the RP2040. I had to use the slow Arduino SPI calls for command register accesses to get it working. Fortunately pixel data can still be sent with a minimal time gap between colour data words, so the graphics tests still return reasonable figures at 32.25MHz SPI clock rate:

Benchmark,                Time (microseconds)
Screen fill (5 times),    109278  (45.75 fps)
Text,                     41025
Lines,                    172236
Horiz/Vert Lines,         11329
Rectangles (outline),     9043
Rectangles (filled),      180311
Circles (filled),         79440
Circles (outline),        63072
Triangles (outline),      50598
Triangles (filled),       104209
Rounded rects (outline),  32442
Rounded rects (filled),   199246
Total = 1052229us
Total = 1.0522s

I will push the updates in the next week or so after more testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant