Page 1 of 1

Display Text on a 1.8" 128 x 160 Colour TFT screen

Posted: Thu Apr 25, 2019 2:47 am
by cfbsoftware
The attached example redirects all text output from functions in the Out module to a 1.8" 128 x 160 TFT screen using a Sitronix ST7735 Display Controller. It uses a 6x8 font stored as resource data.
DisplayText2.jpg (85.15 KiB) Viewed 7445 times
The screen we used is the AdaFruit 1.8" Colour TFT Shield (PID: 802) which conveniently plugs into the Arduino-compatible headers on an STM Nucleo-64 L152RE Board. The example can be easily adapted to any of the Cortex-M3, Cortex-M4 and Cortex-M7 STM Nucleo-64 / 144 boards by modifying the ST7735.ConfigurePins procedure to match the corresponding procedure located in the Astrobe Examples SlideDemo folder.

Re: Display Text on a 1.8" 128 x 160 Colour TFT screen

Posted: Wed Dec 25, 2019 6:48 pm
by cfbsoftware
Because of the problems reported with the v2 version of the AdaFruit TFT Display Shield I've decided to now support the ST7735 TFT Display driver library and associated demos on the simpler AdaFruit 1.8" Color TFT LCD display with MicroSD Card Breakout:

I have tested it on both the Arty S7 and the STM32 Nucleo L152RE boards and both work with the existing code. The Breakout board: STM32 Nucleo L152RE connections are as follows:

Code: Select all

LITE:    D6
MISO:     -
SCK:     SCK/D13
D/C:     D8
VCC:     3V3
Gnd:     GND