wiciu15 / ST7789-STM32-uGUI

Driving st7789 displays with STM32 and uGUI library, using hardware SPI and DMA(Optional), with several modifications for best performance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Driver for ST7789 displays using STM32 and uGUI library.

Using STM32's Hardware SPI to drive a ST7789 based IPS display.
Forked from Floyd-Fish
Added my modified uGUI version.
This fork is a lot faster, specially on filling with the DMA (13x faster).
Everything has been optimized, font drawing is also a lot better due pixel packing, counts the same-color consecutive pixels, then draw them in a single operation, thus removing a lot of overhead.
The projects works right away, use STM32 CUBE IDE (Import... Exiting project... Select any of the demos).
Tested on STM32F103 and STM32F411, using a 135x240 4-wire SPI screen.
It can achieve 60FPS with 32MHZ SPI clock.

Configuration is done in st7780.h

For more information, check the Original ST7789 project and uGUI page.
To convert fonts, use my modified ttf2uGUI version. I've also compiled it for windows (ttf2ugui-win.zip).
Bitmaps can be converted withLcd image converter, use 16 bit packing, Little endian.

About

Driving st7789 displays with STM32 and uGUI library, using hardware SPI and DMA(Optional), with several modifications for best performance.


Languages

Language:C 99.8%Language:Assembly 0.2%Language:Makefile 0.0%