wget https://raw.githubusercontent.com/UCTRONICS/UCTRONICS_LCD35_RPI/master/install
sudo chmod +x install
sudo ./install
sudo raspi-config choose Advanced Operations -> Expand Filesystem
sudo reboot
sudo apt-get update
sudo git clone https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI.git
cd UCTRONICS_LCD35_RPI
sudo chmod 777 UCTRONICS_LCD_backup
sudo chmod 777 UCTRONICS_LCD35_install
sudo chmod 777 UCTRONICS_LCD_restore
sudo chmod 777 UCTRONICS_LCD_hdmi
sudo ./UCTRONICS_LCD_backup
sudo ./UCTRONICS_LCD35_install
wait a while the system will be installed and restarted automatically.
sudo ./UCTRONICS_LCD_restore
sudo ./UCTRONICS_LCD_hdmi
cd UCTRONICS_LCD35_RPI
sudo unzip Xinput-calibrator_0.7.5-1_armhf.zip
cd xinput-calibrator_0.7.5-1_armhf/
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
sudo apt-get update
sudo apt-get install matchbox-keyboard
sudo nano /usr/bin/toggle-matchbox-keyboard.sh
#!/bin/bash
#This script toggle the virtual keyboard
PID=`pidof matchbox-keyboard`
if [ ! -e $PID ]; then
killall matchbox-keyboard
else
matchbox-keyboard -s 50 extended&
fi
sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh
sudo mkdir /usr/local/share/applications
sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop
[Desktop Entry]
Name=Toggle Matchbox Keyboard
Comment=Toggle Matchbox Keyboard`
Exec=toggle-matchbox-keyboard.sh
Type=Application
Icon=matchbox-keyboard.png
Categories=Panel;Utility;MB
X-MB-INPUT-MECHANSIM=True
nano ~/.config/lxpanel/LXDE-pi/panels/panel
Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
Button {
id=/usr/local/share/applications/toggle-matchbox-keyboard.desktop
}
sudo reboot
step1: choose the Directory Tree -> / -> usr -> share ->applications folder
Step2: choose a icon you want to link
Step3: choose edit -> create link... ->Desktop ->OK
cd ~UCTRONICS_LCD35_RPI
For rotate 0 :
sudo chmod +x UCTRONICS_LCD35_install
sudo ./UCTRONICS_LCD35_install
For rotate 90 :
sudo chmod +x UCTRONICS_LCD35_rotation_90_install
sudo ./UCTRONICS_LCD35_rotation_90_install
For rotate 180 :
sudo chmod +x UCTRONICS_LCD35_rotation_180_install
sudo ./UCTRONICS_LCD35_rotation_180_install
For rotate 270 :
sudo chmod +x UCTRONICS_LCD35_rotation_270_install
sudo ./UCTRONICS_LCD35_rotation_270_install