Page 1 of 1

1.8" inch ST7735R SPI 128*160 TFT

Posted: Sun Apr 02, 2017 8:14 pm
by mikeberrymike
Hi, I've been cruising through a lot of web pages, forum posts and tutorials, but I cannot figure out how to connect a ST7735R 1.8" display to a Raspberry Pi2 Model B and make it work.

I've connected the following PINs:

Code: Select all

Display  Pi
-LED     GND
+LED     3,3V
CS       PIN 24 GPIO 8
SCL      PIN 23 GPIO 11
SDA      PIN 19 GPIO 10
A0       PIN 18 GPIO 24
RESET    PIN 22 GPIO 25
VCC      5V
GND      GND
I've activated SPI in raspi-config, and I've added fbcon=map:10 fbcon=rotate:1 fbcon=font:ProFont6x11 in /boot/cmdline.txt, but I see nothing but a white screen.

A modprobe fbtft_device name=adafruit18 gives the following:

Code: Select all

Apr  2 21:57:29 egpu kernel: [ 5888.241426] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
Apr  2 21:57:29 egpu kernel: [ 5888.242751] spidev spi0.1: spidev spi0.1 500kHz 8 bits mode=0x00
Apr  2 21:57:29 egpu kernel: [ 5888.242804] bcm2708_fb soc:fb: soc:fb id=-1 pdata? no
Apr  2 21:57:30 egpu kernel: [ 5889.145656] graphics fb1: fb_st7735r frame buffer, 128x160, 40 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz
Apr  2 21:57:30 egpu kernel: [ 5889.145713] fbtft_device: GPIOS used by 'adafruit18':
Apr  2 21:57:30 egpu kernel: [ 5889.145722] fbtft_device: 'reset' = GPIO25
Apr  2 21:57:30 egpu kernel: [ 5889.145729] fbtft_device: 'dc' = GPIO24
Apr  2 21:57:30 egpu kernel: [ 5889.145736] fbtft_device: 'led' = GPIO18
Apr  2 21:57:30 egpu kernel: [ 5889.145752] spidev spi0.1: spidev spi0.1 500kHz 8 bits mode=0x00
Apr  2 21:57:30 egpu kernel: [ 5889.145765] fb_st7735r spi0.0: fb_st7735r spi0.0 32000kHz 8 bits mode=0x00
Plus, /dev/fb1 appears after the modprobe.
There is also no luck in xorg - using /dev/fb1 in /usr/share/X11/xorg.conf.d/99-fbturbo.conf for fbturbo is not contributing. The white screen is residual. But the x startup was only a test, in the end I'd like nothing more than a console.

Any ideas?