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.
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.
Display Text on a 1.8" 128 x 160 Colour TFT screen
-
- Site Admin
- Posts: 525
- Joined: Fri Dec 31, 2010 12:30 pm
- Contact:
Display Text on a 1.8" 128 x 160 Colour TFT screen
- Attachments
-
- TextDisplay.zip
- (4.8 KiB) Downloaded 2615 times
-
- Site Admin
- Posts: 525
- Joined: Fri Dec 31, 2010 12:30 pm
- Contact:
Re: Display Text on a 1.8" 128 x 160 Colour TFT screen
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:
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