add LCD5
This commit is contained in:
parent
16e6e618be
commit
1dd11e6259
@ -7,7 +7,7 @@ sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak
|
|||||||
sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
|
sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
|
||||||
sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
|
sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
|
||||||
sudo echo "enable_uart=1" >> ./boot/config.txt.bak
|
sudo echo "enable_uart=1" >> ./boot/config.txt.bak
|
||||||
sudo echo "display_rotate=3" >> ./boot/config.txt.bak
|
sudo echo "display_rotate=0" >> ./boot/config.txt.bak
|
||||||
sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
|
sudo echo "max_usb_current=1" >> ./boot/config.txt.bak
|
||||||
sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
sudo echo "config_hdmi_boost=7" >> ./boot/config.txt.bak
|
||||||
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
|
||||||
@ -29,9 +29,9 @@ sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.con
|
|||||||
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
if [ ! -d /etc/X11/xorg.conf.d ]; then
|
||||||
sudo mkdir /etc/X11/xorg.conf.d
|
sudo mkdir /etc/X11/xorg.conf.d
|
||||||
fi
|
fi
|
||||||
sudo cp -rf ./usr/99-calibration.conf-5-270 /etc/X11/xorg.conf.d/99-calibration.conf
|
sudo cp -rf ./usr/99-calibration.conf-5-0 /etc/X11/xorg.conf.d/99-calibration.conf
|
||||||
sudo touch ./.have_installed
|
sudo touch ./.have_installed
|
||||||
echo "hdmi:resistance:5:270:800:480" > ./.have_installed
|
echo "hdmi:resistance:5:0:800:480" > ./.have_installed
|
||||||
nodeplatform=`uname -n`
|
nodeplatform=`uname -n`
|
||||||
kernel=`uname -r`
|
kernel=`uname -r`
|
||||||
version=`uname -v`
|
version=`uname -v`
|
||||||
|
|||||||
6
usr/99-calibration.conf-5-180
Executable file
6
usr/99-calibration.conf-5-180
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "calibration"
|
||||||
|
MatchProduct "ADS7846 Touchscreen"
|
||||||
|
Option "Calibration" "3951 140 3998 261"
|
||||||
|
Option "SwapAxes" "0"
|
||||||
|
EndSection
|
||||||
6
usr/99-calibration.conf-5-270
Executable file
6
usr/99-calibration.conf-5-270
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "calibration"
|
||||||
|
MatchProduct "ADS7846 Touchscreen"
|
||||||
|
Option "Calibration" "3998 261 140 3951"
|
||||||
|
Option "SwapAxes" "1"
|
||||||
|
EndSection
|
||||||
6
usr/99-calibration.conf-5-90
Executable file
6
usr/99-calibration.conf-5-90
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "calibration"
|
||||||
|
MatchProduct "ADS7846 Touchscreen"
|
||||||
|
Option "Calibration" "261 3998 3951 140"
|
||||||
|
Option "SwapAxes" "1"
|
||||||
|
EndSection
|
||||||
6
usr/99-calibration.conf-5-FLIP-H
Executable file
6
usr/99-calibration.conf-5-FLIP-H
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "calibration"
|
||||||
|
MatchProduct "ADS7846 Touchscreen"
|
||||||
|
Option "Calibration" "3951 140 261 3998"
|
||||||
|
Option "SwapAxes" "0"
|
||||||
|
EndSection
|
||||||
6
usr/99-calibration.conf-5-FLIP-V
Executable file
6
usr/99-calibration.conf-5-FLIP-V
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "calibration"
|
||||||
|
MatchProduct "ADS7846 Touchscreen"
|
||||||
|
Option "Calibration" "140 3951 3998 261"
|
||||||
|
Option "SwapAxes" "0"
|
||||||
|
EndSection
|
||||||
Loading…
x
Reference in New Issue
Block a user