Page 1 of 2
Faster spi on the rp2040
Posted: Fri Jul 21, 2023 1:52 pm
by Chadb
Hi, I am using a display 320x240 (st7789) and I stumbled on this from adafruit.
https://www.youtube.com/watch?v=5mzlP_6rZ7w
Apparently there is a way to block send SPI that is ~10 times faster.
Could this be implemented?
Thanks,
Chad
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 1:58 pm
by BenR
Hi Chad,
The ST7789 display component doesn't currently use the SPI layer.
I'll see how easy it is to allow it to use SPI and if it's possible then I'll also add the pixel buffering properties and code I did for ESP to acheive a similar SPI speed optimisation.
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 2:14 pm
by Chadb
That would be awesome! I am going to try to implement a little menu with an encoder knob and .bmp's and right now it is so slow it might not be usable.
I think I am going to be using the lcd bitmap drawer, and the display manager..
Thanks,
Chad
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 3:56 pm
by BenR
Hopefully all done for you now, just pushing to the update system.
The display component now lets you select between SPI or standard IO pins and when SPI is selected it lets you select to enable the Fast Pixel buffer to put SPI operations together in to a single burst. Hopefully should speed things up for you a lot.
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 3:59 pm
by Chadb
Super great!!! I will give it a try right now and let you know!!
Thanks!
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 4:06 pm
by Chadb
Not seeing it yet. Doing a full database check. How long does it usually take to filter through?
c
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 4:11 pm
by BenR
Hmm it should be there now, but I've only made the change in v10, is this what you're using?.

- Cmp.jpg (52.03 KiB) Viewed 8327 times
Aha just seen the v9 logo on the top post, doh.
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 4:13 pm
by Chadb
Oh, no. I only have version 9.
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 4:36 pm
by BenR
Might be worth you trying v10 and see how you get on, you should be able to do it all for free and using your existing toolchains.
This shouldn't effect your v9 installer either so you can continue to use this for anything that would cost you money in v10.
Here's what v10 offers for free
https://www.flowcode.co.uk/free/
Re: Faster spi on the rp2040
Posted: Fri Jul 21, 2023 4:45 pm
by Chadb
I've never actually completed a project in flow code, yet I have bought pretty fully loaded 8 and 9. It started with wanting to make a dmx widget and I couldn't get that working correct on the st arm's that I had. I'll give it a try in 10 and maybe buy the rp chip pack.
Thanks,
Chad