Absolutely Ben, faster. Now I will try to test spi with ESP32. Can´t get it fast enough
Now I see in the configuration for the ILI9341 SPI component it is not possible to select "Use pin reference" like in the serial ILI component or am I not looking the rigth place?
For the SPI remap pins, sorry no this is currently not possible.
However it should be fairly simple to work out. PortA is GPIO pins 0-31 so PortA 19 would be GPIO 19. PortB is GPIO pins 32-63 so PortB 2 would be GPIO 34.
The Prescale property sets how fast the SPI is output. It's currently at 400KHz in your program but can go a lot faster. I suggest trying it at 10MHz and see how you get on.
Let me do some more testing and I'll see if I can find another bottleneck for you. The SPI is currently being run byte by byte but the ESP chip can work with SPI in transaction mode where you queue up a load of bytes and then let it go. This might be the way to let it run faster. 30MHz is a lot faster then the software version will go by say a factor of at least 10 so there must be a bottleneck somewhere.
I'll have a play and let you know.
If I measure with a scope on the MISO pin I don´t see any signal
For the GLCD MISO isn't used it's just the MOSI and the SCK.
I've pushed a new version of the SPI display component which should be a lot faster.
I have a program that just clears each display version,
Using the new SPI display component the clear is now a lot faster, 630ms for the serial component vs 75ms for the SPI version @ 25MHz.
Logic2.jpg (43.72 KiB) Viewed 12203 times
It will be interesting to see how it gets on with a test that's drawing data to the display. I've optimised where I can so hopefully it is still as fast if not faster.