This is a library for ILI9486 based TFT displays controlled by an 8-bit parallel port (8080) interface for STM32F103 using STM32duino.
Based on the original Adafruit 8-bit parallel TFT library written by Limor Fried/Ladyada and ported to STM32duino by Mike Kushnerik/MKE.
This library depends on the ST HAL based Arduino core files from here: STM32duino
The goal of this library was to create a simple to use display interface for the 3.5" and 4.0" ILI9486 TFT displays which is also compatible with the Adafruit GFX API.
So far, this library has been tested using my 3.5" and 4.0" TFT breakout boards available here: TFT Breakouts
3.5" and 4.0" ILI9486 displays for the breakouts can be purchased here: AliExpress
Benchmark using 4.0" 480x320 ILI9486 based LCD and STM32F103C8T6 Blue Pill @ 72 MHz:
Benchmark | Time (microseconds) |
---|---|
Screen fill |
129963 |
Text |
19215 |
Lines |
315618 |
Horiz/Vert Lines |
14080 |
Rectangles (outline) |
9339 |
Rectangles (filled) |
357961 |
Circles (filled) |
130584 |
Circles (outline) |
131883 |
Triangles (outline) |
60204 |
Triangles (filled) |
180752 |
Rounded rects (outline) |
43843 |
Rounded rects (filled) |
383875 |
How to use:
- Place the Adafruit_TFT library folder your /libraries/ folder. Restart the Arduino IDE.
- If not already installed, add the Adafruit GFX Library to your libraries folder.
- Modify pin settings as necessary for your application. Make sure to read the notes regarding pin assignments inside the "STM32_ILI9486_8_bit.h" file.
- Enjoy! 😀