Skip to content

Instantly share code, notes, and snippets.

@eendeego
Last active June 30, 2019 16:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eendeego/b426cbf9184cc2035187 to your computer and use it in GitHub Desktop.
Save eendeego/b426cbf9184cc2035187 to your computer and use it in GitHub Desktop.
Install adafruit lcd drivers on texy's 1.8 tft display (raspberry pi)
## Install kernel modules
mkdir -p ~/work/share/lcd/adafruit-pitft-2.8
cd ~/work/share/lcd/adafruit-pitft-2.8
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140724-1.deb
sudo dpkg -i -B *.deb
sudo reboot
## Test display
sudo modprobe spi-bcm2708
sudo modprobe fbtft_device name=adafruit18 speed=32000000 fps=50 rotate=270 gpios=reset:25,dc:24,led:23
sudo apt-get install fbi
cd ~/work/share/lcd/adafruit-pitft-2.8
wget http://adafruit-download.s3.amazonaws.com/adapiluv320x240.jpg
sudo fbi -T 2 -d /dev/fb1 -noverbose -a adapiluv320x240.jpg
## Load on boot
sudo sh -c 'echo spi-bcm2708 >> /etc/modules'
sudo sh -c 'echo fbtft_device >> /etc/modules'
sudo sh -c 'echo options fbtft_device name=adafruit18 speed=32000000 fps=50 rotate=270 gpios=reset:25,dc:24,led:23>> /etc/modprobe.d/sainsmart18.conf'
## Reconfigure font
sudo dpkg-reconfigure console-setup
# ... and go thru to select Terminus 6x12
## Boot console on TFT
sudo vi /boot/cmdline.txt
# Add fbcon=map:10 fbcon=font:VGA8x8
@11ishan
Copy link

11ishan commented Aug 2, 2016

Hey,
I'm facing a similar problem as this guy.
http://raspberrypi.stackexchange.com/questions/37611/tft-kernel-module-not-loading-on-startup

This might not be the right place to post this, but Please could you help me out with it?
Thank you

@11ishan
Copy link

11ishan commented Aug 2, 2016

Any help from anyone would be much appreciated.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment