Member-only story
ARDUINO // PROGRAMMING // ST7796S
Getting Started With The 4" TFT SPI with ST7796S driver
Or… How to go from “whoa to go” from purchase to wiring, to getting the example code up and running.
Table Of Contents
The Design Of The Library
Buying An LCD
Information On The LCD
The Wiring And Setup Of The LCD
↳ The Arduino UNO wiring
↳ The Arduino UNO code
↳ The Arduino mega2560 wiring
↳ The Arduino mega2560 code
Understanding How The Display Works
↳ The address window
↳ The rgb656 colour format
↳ The two modes — draw versus text
The Library Methods (And Hints And Tips)
↳ The constructors
↳ Methods to avoid (unless you want low-level access)
↳ Lower-level methods (and one helper)
↳ Draw mode — Setting and getting colours
↳ Draw mode — reading a pixel colour
↳ Draw mode — Drawing points, lines, shapes, and images
↳ Text mode — Drawing characters and strings
↳ Additional methods
The 5x7 LCDWIKI_font.c file
Troubleshooting