The TFT_eSPI library was originally created to suport ESP8266 and ESP32 processors. It is in the process of being refactored to support other processors, in particular the STM32 series.
The new refactored library here is targeted at any 32 bit processor, but it will now run (slowly) on an UNO if the fonts are limited to GLCD. Performance on 8 bit and 16 bit processors will be poor due to lack of processor specific optimisation and the extensive use of 32 bit variable types.
Summary:
Added support for STM32 boards with SPI or 8 bit parallel displays
Added STM32 targeted optimised drivers
Added DMA for STM32F2xx/4xx/7xx when used with SPI displays
Added three new examples to test SPI DMA on STM32F2xx/4xx/7xx boards
Testing of the updates has been performed with STM32F103 "Blue Pill" plus STM32F401, STM32F446RE and STM32F767ZI Nucleo boards.
Until it is "released" it must be downloaded as a zip file. Smooth fonts are not yet supported for STM32 processors due to the lack of SPIFFS but SD card support will be added.
Please SAVE A COPY of your existing TFT_eSPI library in case you have issues with this new branch.
Performances are quite good:
STM32F767 8 bit parallel ILI9341
Benchmark, Time (microseconds)
Screen fill, 25639
Text, 3968
Lines, 24316
Horiz/Vert Lines, 2258
Rectangles (outline), 1593
Rectangles (filled), 53138
Circles (filled), 16937
Circles (outline), 14347
Triangles (outline), 6273
Triangles (filled), 22635
Rounded rects (outline), 6172
Rounded rects (filled), 60827
Total = 0.2381s
STM32F767 55MHz SPI, STM32 specific driver ILI9341
Benchmark Time (microseconds)
Screen fill 114895
Text 21052
Lines 139092
Horiz/Vert Lines 11158
Rectangles (outline) 7613
Rectangles (filled) 238863
Circles (filled) 80542
Circles (outline) 86984
Triangles (outline) 31905
Triangles (filled) 104423
Rounded rects (outline) 38057
Rounded rects (filled) 276499
Total = 1.1511s





