1.8" inch ST7735R SPI 128*160 TFT

Cenxiones de pines (con esto ya podemos usar programas en python sin
agregar modulo al kernel):



Agregar modulos al kernel:

HAbilitar con raspi-config, el modulo SPI:
The SPI interface is ena.bled 

cargar modulos al kernel:
modprobe fbtft_device name=flexfb

modprobe fbtft_device name=sainsmart18 speed=16000000 rotate=270

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?


Sainsmart 1.8"

Sainsmart 1.8
Wiring

DisplayDriver gpio nameRaspberry PiRemark
GNDGND
VCC3.3V
SCLSCLK
SDAMOSI
RS/DCdcGPIO24Command/data
RESresetGPIO25
CS
https://github.com/notro/fbtft/wiki/LCD-Modules#sainsmart-18

Comentarios

Entradas populares de este blog

Orange Pi IoT 2G Flashear memoria NAND

Usar datos gratis para proyectos IoT FreedomPop y Orange Pi 2G IoT (también Simyo).

Configurar modem GSM en la Orange Pi 2G IoT (Orange España)