Git Product home page Git Product logo

uctronics_lcd35_rpi's Introduction

UCTRONICS_LCD35_RPI

Any problems, please refer to our troubleshootings

https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI/blob/master/Troubleshooting.md

Install the UCTRONICS_LCD35_RPI is very easy.
Just run

wget https://raw.githubusercontent.com/UCTRONICS/UCTRONICS_LCD35_RPI/master/install
sudo chmod +x install
sudo ./install 

If you want to know the detail operations see the follows.

This driver package is used for UCTRONICS 3.5 inches LCD which can run on Raspbery Pi zero Pi2 Pi3 Model B/B+ paltforms.

In order to use it easier,we provide you operation steps in detail.

Step1: Expand the sd card first

sudo raspi-config choose Advanced Operations -> Expand Filesystem 
sudo reboot

Step2: Update your raspberry pi system

 sudo apt-get update

Step3: Download the driver package

 sudo git clone https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI.git

Step4: Come in the UCTRONICS_LCD35_RPI

cd UCTRONICS_LCD35_RPI

Step5: Get run permissions

 sudo chmod 777 UCTRONICS_LCD_backup
 sudo chmod 777 UCTRONICS_LCD35_install
 sudo chmod 777 UCTRONICS_LCD_restore
 sudo chmod 777 UCTRONICS_LCD_hdmi

Step6: backup data

 sudo ./UCTRONICS_LCD_backup

Step7: install the LCD35 driver

 sudo ./UCTRONICS_LCD35_install

wait a while the system will be installed and restarted automatically.
if you want to reuse the pre-installation system, you can use the below command

 sudo ./UCTRONICS_LCD_restore

If you want to display on hdmi instead of LCD,just use the below command

   sudo ./UCTRONICS_LCD_hdmi

Add more functions for the LCD :

NO1. Install calibration software for calibration

  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

NO2. Install virtual keyboard

  1. Execute the following commands to install the corresponding software
 sudo apt-get update
 sudo apt-get install matchbox-keyboard
 sudo nano /usr/bin/toggle-matchbox-keyboard.sh
  1. Copy the following contents to toggle box - keyboard. Sh, save the exit
  #!/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
  1. Execute the following command
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
  1. Copy the following contents to toggle - matchbox - keyboard. Desktop, save exit
[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
  1. To perform the following command, note that this step must use the "PI" user permission, and if the administrator privileges are used, the file will not be found
nano ~/.config/lxpanel/LXDE-pi/panels/panel
  1. Find similar commands (different versions of ICONS may differ)
Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop 
 }
}
  1. Add the following code to add a Button item
 Button {
 id=/usr/local/share/applications/toggle-matchbox-keyboard.desktop
  }
  1. To restart the system with the following command, you can see a virtual keyboard icon in the top left corner
  sudo reboot

NO3. How to add new ICON to desktop ?

If it's just a folder, add it directly to the desktop

If it is an executable, follow this steps:

  • step1: choose the Directory Tree -> / -> usr -> share ->applications folder

  • Step2: choose a icon you want to link

  • Step3: choose edit -> create link... ->Desktop ->OK

NO4. How to rotate the screen to 180 degree ?

cd UCTRONICS_LCD35_RPI
sudo chmod 777 UCTRONICS_LCD35_rotation_180_install
sudo ./UCTRONICS_LCD35_rotation_180_install

Rotation =0

Alt text

Rotation =180

Alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.