Last active
December 23, 2018 17:57
-
-
Save knoopx/28be143efd834d8121a0dfa4e9f94e9e to your computer and use it in GitHub Desktop.
raspberry tft
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
# https://tutorials-raspberrypi.de/lcd-touch-display-teil-2-anpassungen/ | |
# http://projectable.me/raspberry-pi-touchscreen-octoprint-controller/ | |
sudo apt-get install xserver-xorg-video-fbturbo | |
git clone https://github.com/goodtft/LCD-show.git | |
LCD-show/LCD35-show 180 | |
# fix framebuffer | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Section "Device" | |
Identifier "touchscreen" | |
Driver "fbdev" | |
Option "fbdev" "/dev/fb1" | |
EndSection | |
Section "ServerFlags" | |
Option "blank time" "0" | |
Option "standby time" "0" | |
Option "suspend time" "0" | |
Option "off time" "0" | |
EndSection | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3936 227 268 3880" | |
Option "SwapAxes" "1" | |
Option "InvertX" "1" | |
Option "InvertY" "1" | |
EndSection | |
# fix touchscreen | |
sudo apt-get install xserver-xorg-input-evdev | |
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf | |
# speed up refresh rate | |
sudo nano /boot/config.txt | |
dtoverlay=tft35a,speed=16000000,fps=30 | |
# deactivate screen saver | |
/etc/X11/xorg.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment