Skip to content

Instantly share code, notes, and snippets.

@luismreis luismreis/texy-1.8.sh
Last active Jun 30, 2019

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.