Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Step 1: Download and enter the Waveshare-DSI-LCD driver folder. git clone https://github.com/waveshare/Waveshare-DSI-LCD cd Waveshare-DSI-LCD #Second, input uname -a to view the internal core version in the terminal, and input cd to the corresponding directory. #5.15.84 runs the following commands cd 5.15.84 #6.1.21 runs the following commands #cd 6.1.21 #Step 3: Please determine how many bits of the system you are currently using, 32-bit system into the 32 directory, 64-bit system into the 64 directory cd 32 #cd 64 #Step 4: Enter your corresponding model command to install the driver, pay attention to the I2C dip switch selection. #4inch DSI LCD (B) 720×720 driver: sudo bash ./WS_xinchDSI_MAIN.sh 40C I2C0 #Step 5: Wait a few seconds, when the driver installation is complete, without prompting any error reports, reboot to load the DSI driver can be used normally sudo reboot #Note: The above steps are required to ensure that the Raspberry Pi can connect to the Internet properly.
dtoverlay=WS_xinchDSI_Screen,SCREEN_type=10,I2C_bus=10
dtoverlay=WS_xinchDSI_Touch,I2C_bus=10
In the start menu, select: Preferences -> Screen Configuration -> Configure -> Screens -> DSI-1 -> Orientation, select the corresponding angle in it, click "√", select Yes, and restart.
sudo nano /boot/cmdline.txt #Add a command to display the rotation angle at the beginning of the cmdline.txt file, save it and restart it. #Display rotates 90 degrees video=DSI-1:720x720M@60,rotate=90 #Display rotates 180 degrees video=DSI-1:720x720M@60,rotate=180 #Display rotates 270 degrees video=DSI-1:720x720M@60,rotate=270
sudo nano /boot/config.txt #Modify the instruction of touch rotation angle at the end of the config.txt file and take effect after reboot (default instruction of 0° touch direction exists) #0°: dtoverlay=WS_xinchDSI_Touch,invertedx,swappedxy #90°: dtoverlay=WS_xinchDSI_Touch,invertedx,invertedy #180°: dtoverlay=WS_xinchDSI_Touch,invertedy,swappedxy #270°: dtoverlay=WS_xinchDSI_Touch
Using the application provided by Waveshare:
cd Waveshare-DSI-LCD #Determine the kernel version currently in use, e.g. 5.15.61 kernel, and run the following command cd 5.15.84 #Determine how many bits of the currently used system, 32-bit system into the 32 directory, 64-bit system into the 64 directory cd 32 #cd 64 cd Backlight sudo ./install.sh
After the installation is complete, you can open the program in the Start menu - > Accessories - > Brightness, as shown below:
To adjust the system command of the lite version, after entering the root privilege, execute the following command on the Raspberry Pi terminal:
echo X > /sys/waveshare/rpi_backlight/brightness
(X value in the range of 0~255)
For example:
sudo su root echo 100 > /sys/waveshare/rpi_backlight/brightness
sudo apt-get update sudo apt-get full-upgrade
After upgrading the system, some pre-install driver files may be covered, and you need to reinstall the driver so that it can normally display.
If users have installed the driver on the Raspberry Pi 4 Model B before, they may find it is unable to normally display after changing the board such as Raspberry Pi 3 Model B+.
As Pi4 and Pi3 need to load different driver files, you need to reinstall the drivers on the new board according to #Software Setting so that it can normally display.