Merge bc1ce9f4be0a499aff796c277339e8dfd1351519 into 564dce2c35ca5a939bc185f43c67fdb38651681b

This commit is contained in:
Tayray 2018-06-13 12:43:45 +00:00 committed by GitHub
commit 34ce37ec8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "140 3951 261 3998"
Option "SwapAxes" "0"
EndSection

8
arch/LCD5-show Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
sudo cp -rf ./config-5.txt /boot/config.txt
sudo mkdir /etc/X11/xorg.conf.d
sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf
yes | sudo pacman -Sy xinput_calibrator xf86-input-evdev
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo reboot

10
arch/config-5.txt Normal file
View File

@ -0,0 +1,10 @@
# See /boot/overlays/README for all available options
gpu_mem=64
dtparam=audio=on
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=10000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900