代码拉取完成,页面将自动刷新
#!/bin/bash
sudo ./system_backup.sh
sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
sudo echo "dtoverlay=qddpi18" >> ./boot/config.txt.bak
sudo echo "enable_dpi_lcd=1" >> ./boot/config.txt.bak
sudo echo "display_default_lcd=1" >> ./boot/config.txt.bak
sudo echo "dpi_group=2" >> ./boot/config.txt.bak
sudo echo "dpi_mode=87" >> ./boot/config.txt.bak
sudo echo "dpi_output_format=0x6f016" >> ./boot/config.txt.bak
sudo echo "dpi_timings=1024 0 160 20 140 600 0 12 3 20 0 0 0 60 0 45000000 3" >> ./boot/config.txt.bak
sudo echo "disable_overscan=1" >> ./boot/config.txt.bak
sudo echo "dtoverlay=i2c5,pins_10_11" >> ./boot/config.txt.bak
sudo echo "dtoverlay=goodix_dpi,interrupt=26,reset=18" >> ./boot/config.txt.bak
#sudo echo "gpio=19=op,dh" >> ./boot/config.txt.bak
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
sudo cp ./usr/qddpi18.dtb /boot/overlays/qddpi18.dtbo
sudo cp ./usr/goodix_dpi.dtb /boot/overlays/goodix_dpi.dtbo
sudo touch ./.have_installed
#echo "hdmi:capacity:7C-1024x600:0:1024:600" > ./.have_installed
sudo sync
sudo sync
sleep 1
if [ $# -eq 1 ]; then
sudo ./rotate.sh $1
elif [ $# -gt 1 ]; then
echo "Too many parameters"
fi
echo "reboot now"
sudo reboot
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。