diff --git a/arch/99-calibration.conf-5 b/arch/99-calibration.conf-5 new file mode 100644 index 0000000..c6fbc8c --- /dev/null +++ b/arch/99-calibration.conf-5 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "140 3951 261 3998" + Option "SwapAxes" "0" +EndSection diff --git a/arch/LCD5-show b/arch/LCD5-show new file mode 100644 index 0000000..d39b9d0 --- /dev/null +++ b/arch/LCD5-show @@ -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 diff --git a/arch/config-5.txt b/arch/config-5.txt new file mode 100644 index 0000000..ce5eb30 --- /dev/null +++ b/arch/config-5.txt @@ -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