Skip to content

Instantly share code, notes, and snippets.

@zottoz
Forked from tegila/waveshare32b.md
Last active August 29, 2015 14:20
Show Gist options
  • Save zottoz/b83283f35e489ae63525 to your computer and use it in GitHub Desktop.
Save zottoz/b83283f35e489ae63525 to your computer and use it in GitHub Desktop.
## LCD Raspberry Pi 2 WaveShare 32b -> http://www.wvshare.com/product/3.2inch-RPi-LCD-B.htm
## fb_ili9340
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
## adicionar no /boot/config.txt
echo "dtparam=spi=on" >> /boot/config.txt
echo "dtoverlay=ads7846,penirq=17" >> /boot/config.txt
## carregar modulo
## /etc/modules
echo "fbtft_device name=waveshare32b rotate=90" >> /etc/modules
## /etc/rc.local enable terminal 1 in fb1
con2fbmap 1 1
## editar o arquivo 99turbo.conf e comentar a linha do /dev/fb0
vim.tiny /usr/share/X11/xorg.conf.d/99-fbturbo.conf
FRAMEBUFFER=/dev/fb1 startx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment