Last active
June 30, 2019 16:04
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any help from anyone would be much appreciated.
Thank you