add LCD24-3A+,LCD24,LCD28,LCD32,LCD35

This commit is contained in:
lcdwiki
2019-06-05 10:40:29 +01:00
parent 1dd11e6259
commit bae0a0da81
14 changed files with 257 additions and 24 deletions

View File

@@ -105,6 +105,7 @@ new_rotate_value=$[$new_rotate_value*90]
elif [ $output_type = "gpio" ]; then
sudo sed -i -e ''"$line"'s/'"$str"'/rotate='"$new_rotate_value"'/' /boot/config.txt
resultr=`grep -rn "^hdmi_cvt" /boot/config.txt | tail -n 1 | awk -F' ' '{print $1,$2,$3}'`
if [ -n "$resultr" ]; then
liner=`echo -n $resultr | awk -F: '{printf $1}'`
strr=`echo -n $resultr | awk -F: '{printf $2}'`
if [ $new_rotate_value -eq $default_value ] || [ $new_rotate_value -eq $[($default_value+180+360)%360] ]; then
@@ -113,6 +114,7 @@ elif [ $new_rotate_value -eq $[($default_value-90+360)%360] ] || [ $new_rotate_v
sudo sed -i -e ''"$liner"'s/'"$strr"'/hdmi_cvt '"$height"' '"$width"'/' /boot/config.txt
fi
fi
fi
#setting touch screen rotate
if [ $touch_type = "resistance" ]; then