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

Download pre-release library modules and new examples to use with Astrobe for Cortex-M. Forum members can also upload their own source code examples.
Post Reply
cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

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

Post by cfbsoftware » Thu Apr 25, 2019 2:47 am

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
DisplayText2.jpg (85.15000000000001 KiB) Viewed 18921 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.
Attachments
TextDisplay.zip
(4.8 KiB) Downloaded 1402 times

cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

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

Post by cfbsoftware » Wed Dec 25, 2019 6:48 pm

Because of the problems reported with the v2 version of the AdaFruit TFT Display Shield we'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:

https://www.adafruit.com/product/358

We 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
MOSI:    PWM/MOSI/D11
TFT-CS:  PWM/CS/D10
CARD-CS:  -
D/C:     D8
RESET:   D6
VCC:     3V3
Gnd:     GND

Post Reply