ESP32 SPI

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
giants
Posts: 44
Joined: Fri Apr 26, 2019 2:07 pm

ESP32 SPI

Post by giants » Mon Apr 12, 2021 8:23 am

Hi there !
in this days i start to work width ST7735R display 128*160 16 bit color , i wrote my own libray and work . The problem is the SPI too slow for color the entire screen i need the wait two seconds. I think the problem is the SPI (be onest i don't connect the logic analyzer). Some one have my same problem ? there are other library or some trick or i need the write my own spi libray ?

Thank you
Sergio

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ESP32 SPI

Post by Roberthh » Mon Apr 12, 2021 4:36 pm

SPI itself is sufficiently fast. for your device you have to send ~300k bits for a full screen. At 10MHz SPI that takes about 30 ms. Micropython is slow. I do not know how you have set up your code, but if you write single pixels than you have a lot of overhead. It get's faster if you write larger pieces of the screen at once.

giants
Posts: 44
Joined: Fri Apr 26, 2019 2:07 pm

Re: ESP32 SPI

Post by giants » Mon Apr 12, 2021 4:47 pm

Is true i write single bit, but i don't have any idea how write large piece of the screen, please can you give me some idea ?

Post Reply