Skip to content

Instantly share code, notes, and snippets.

@eendeego
Created July 29, 2014 00:36
Show Gist options
  • Save eendeego/845713ee789d00b11077 to your computer and use it in GitHub Desktop.
Save eendeego/845713ee789d00b11077 to your computer and use it in GitHub Desktop.
Install texy's raspberry pi TFT 1.8 screen with current adafruit/notro drivers
# https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/software-installation
mkdir -p ~/work/share/adafruit-pitft-2.8
cd ~/work/share/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
sudo modprobe spi-bcm2708
sudo modprobe fbtft_device name=sainsmart18 speed=32000000 fps=50
sudo apt-get install fbi
wget http://adafruit-download.s3.amazonaws.com/adapiluv320x240.jpg
sudo fbi -T 2 -d /dev/fb1 -noverbose -a adapiluv320x240.jpg
sudo sh -c 'echo spi-bcm2708 >> /etc/modules'
sudo sh -c 'echo fbtft_device >> /etc/modules'
sudo sh -c 'echo options fbtft_device name=sainsmart18 speed=32000000 fps=50 rotate=270 >> /etc/modprobe.d/sainsmart18.conf'
sudo dpkg-reconfigure console-setup
# ... and go thru to select Terminus 6x12
sudo vi /boot/cmdline.txt
# Add fbcon=map:10 fbcon=font:VGA8x8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment