OPTIONS=(GPIO "Install the default display available from Amazon"\
HDMI "Install the 3.5\" HDMI display from Aliexpress"\
SWISS "Install the Swiss version from play-zone.ch"
)
# *** Display selection ***
dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!"680
defaultDisplay=$?
CHOICE=$(dialog --backtitle "RaspiBlitz - Display Install" --clear --title "Display Install" --menu "Choose a your diplay:"10706"${OPTIONS[@]}" 2>&1 >/dev/tty)
if["${defaultDisplay}"="0"];then
if["${CHOICE}"="GPIO"];then
# *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
@ -41,13 +45,41 @@ if [ "${baseImage}" = "raspbian" ]; then
echo"--> LCD DEFAULT"
cd /home/admin/
sudo apt-mark hold raspberrypi-bootloader
rm -r LCD-show
git clone https://github.com/goodtft/LCD-show.git
sudo chmod -R 755 LCD-show
sudo chown -R admin:admin LCD-show
cd LCD-show/
sudo ./LCD35-show
else
elif["${CHOICE}"="HDMI"];then
echo"Installing the 3.5\" HDMI display from Aliexpress"
# based on http://www.lcdwiki.com/3.5inch_HDMI_Display-B