Instructions to install the NeoSec 3.5" TinyLCD drivers on a Raspberry PI:
-
Enable SPI – comment out the spi blacklist line
sudo nano /etc/modprobe.d/raspi-blacklist.conf
-
Install FBTFT drivers as loadable modules
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update sudo reboot
-
Register device (the driver will load automatically)
sudo modprobe fbtft_device name=tinylcd35
-
dmesg will show the default pin assignements, and that the driver is loaded.
[ 79.030328] fbtft_device: SPI devices registered: [ 79.030380] fbtft_device: spidev spi0.0 500kHz 8 bits mode=0x00 [ 79.030396] fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00 [ 79.030406] fbtft_device: 'fb' Platform devices registered: [ 79.030427] fbtft_device: bcm2708_fb id=-1 pdata? no [ 79.030490] fbtft_device: Deleting spi0.0 [ 79.031098] fbtft_device: GPIOS used by 'tinylcd35': [ 79.031122] fbtft_device: 'reset' = GPIO25 [ 79.031133] fbtft_device: 'dc' = GPIO24 [ 79.031143] fbtft_device: 'led' = GPIO18 [ 79.031152] fbtft_device: SPI devices registered: [ 79.031165] fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00 [ 79.031178] fbtft_device: fb_tinylcd spi0.0 32000kHz 8 bits mode=0x00 [ 79.280788] graphics fb1: fb_tinylcd frame buffer, 320x480, 300 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz
-
Tell the OS to load the driver on boot – edit /etc/modules
fbtft_device name=tinytft35 verbose=0 rotate=90
-
Tell the driver to show the console – edit /boot/cmdline.txt
fbcon=map:10
Is this still necessary to get a TFT running, particularly the TinyLCD 3.5"? Or is this outdated?