Raspberry Pi 3B install 3.5 inch touch screen driver

The 3.5 inch touch screen I bought is as follows:

Please correspond to the hardware.
Hardware installation:
Turn off the Raspberry Pi, power off, and insert the screen into the corresponding port of the Raspberry Pi

install driver

Download the driver to the /boot file
Method 1:
Insert the SD card into the computer, then download the file and put it in the root directory of the SD card.
Raspberry Pi LCD driver: 171219, suitable for 2017-03-02-raspbian-jessie and later versions of Raspbian (Note: the driver must be connected to the Internet when installing this driver)
so that this file is located in the /boot directory
Method 2:
in the tree On the Raspberry Pi, switch to the /boot directory
and use wget to download directly to the local

cd /boot
sudo wget www.waveshare.net/w/upload/9/99/LCD-show-171219.tar.gz

Method 3:
Some articles mentioned that there are also driver files on git, you can use git to download, the address is: https://github.com/goodtft/LCD-show
You can use:

cd /boot
sudo git https://github.com/goodtft/LCD-show.git

I didn't try this method because of network problems. Theoretically you can get the latest drivers.


After making sure to download to the /boot directory, switch to /boot

cd /boot
tar xzvf /boot/LCD-show-171219.tar.gz
cd LCD-show/
chmod +x LCD35-show
./LCD35-show

If downloaded by git method, there is no need to decompress the tar.

How to use:
LCD/HDMI switch
cd LCD-show execute sudo ./LCD-hdmi
cd LCD-show execute sudo ./LCD35-show
 

After installing the touch driver, you can modify the screen rotation direction by running the following commands.

§ Rotate 0 degrees:

1.  cd LCD-show/

2.  ./LCD35-show 0

§ Rotate 90 degrees:

1.  cd LCD-show/

2.  ./LCD35-show 90

§ Rotate 180 degrees:

1.  cd LCD-show/

2.  ./LCD35-show 180

§ Rotate 270 degrees:

1.  cd LCD-show/

2. ./LCD35-show 270

is generally fine after restarting. If there is any problem, try powering off and restarting.


Possible problems: When the
driver decompresses, it may report an error, as if the error does not affect the use.

At first, I found the driver in other places, which is basically the same as this. After installing it, I found that the display was fine, the touch was not working, and the touch x and y axes were reversed. Go to the official website of Weixue to find the driver, install it, and that's it.

For details, please refer to:
http://www.waveshare.net/wiki/3.5inch_RPi_LCD_(A)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324437720&siteId=291194637