Ili9488 Raspberry Pi

sudo nano /boot/cmdline.txt

Add the following lines to the kernel command line parameters (the end of the line)

fbcon=map:10 fbcon=font:VGA8x8 FRAMEBUFFER=/dev/fb1

Install the required fbdev drivers, and make the framebuffer entry for the X11 server

sudo apt-get install xserver-xorg-video-fbdev
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
Section "Device"
Identifier "myfb"
Driver "fbdev"
Option "fbdev" "/dev/fb1"
EndSection

Now, for the real modules loading, create the first config file

sudo nano /etc/modules-load.d/fbtft.conf

Add these lines to it

spi-bcm2835
flexfb
fbtft_device

And the one containing the display parameters

sudo nano /etc/modprobe.d/fbtft.conf

Add these lines to it

options fbtft_device name=flexpfb rotate=180 fps=60 gpios=dc:18,reset:7,wr:17,cs:4,db00:22,db01:23,db02:24,db03:10,db04:25,db05:9,db06:11,db07:8
options flexfb width=400 height=320 buswidth=8 init=-1,0xb0,0x0,-1,0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x28,-1,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E,0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43,0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3

Your display should start up at this time, if not, perform a reboot.
To have the boot console on the display, run

con2fbmap 1 1

You can install fbcp, an utility to mirror framebuffers

sudo apt-get install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp

To disable the console blanking timeout, edit

sudo nano /etc/kbd/config
BLANK_TIME=0

You can set custom fonts, and resize the framebuffer resolution this way:

 

sudo apt-get install kbd
sudo dpkg-reconfigure console-setup

sources:
http://appdictive.dk/blog/projects/2015/10/30/cheap_tft_display_on_raspberry_pi/

Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...