Difference between revisions of "Template:Rotete"

From LCD wiki
Jump to: navigation, search
(Created page with "== <font color="blue">如何旋转显示方向</font> == <font color="red">此方法只针对树莓派系列的显示屏,其它显示屏并不适用</font> *'''方法一'''...")
 
(如何旋转显示方向)
Line 1: Line 1:
== <font color="blue">如何旋转显示方向</font>  ==
+
== <font color="blue">How to rotate the display direction</font>  ==
<font color="red">此方法只针对树莓派系列的显示屏,其它显示屏并不适用</font>
+
<font color="red">This method only applies to the raspberry PI series of display screens, other display screens do not apply.</font>
*'''方法一''',如果还没有安装驱动,请执行下面的命令:
+
*'''Method 1''',If the driver is not installed, execute the following command:
 
{{code|
 
{{code|
 
sudo rm -rf LCD-show
 
sudo rm -rf LCD-show
Line 9: Line 9:
 
sudo ./LCD7C-show 90
 
sudo ./LCD7C-show 90
 
}}
 
}}
执行完毕之后,驱动会安装好,系统会自动重启,然后显示屏就可以旋转90度正常显示   <br/>
+
After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display normally.   <br/>
(这是以7寸C款,旋转90度为例,LCD7C-show可以改为对应的驱动,90也可以改为0,90,180, 270等数值,分别代表旋转角度0度,90度,180度,270度)
+
(This is the '''MPI7002-7inch-C''' model with a rotation of 90 degrees. '''Lcd7c-show''' can be changed to the corresponding driver, and 90 can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)
  
*'''方法二''',如果已经安装好驱动,请执行下面的命令:
+
*'''Method 2''',If the driver is already installed, execute the following command:
 
{{code|
 
{{code|
 
cd LCD-show/
 
cd LCD-show/
 
sudo ./rotate.sh 90
 
sudo ./rotate.sh 90
 
}}
 
}}
执行完毕之后,系统会自动重启,然后显示屏就可以旋转90度正常显示  <br/>
+
After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display normally.  <br/>
(90也可以改为0,90,180,270等数值,分别代表旋转角度0度,90度,180度,270度) <br/>
+
( 90 can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees) <br/>
<font color="red">如果提示rotate.sh找不到,请使用 '''方法一''',安装最新的驱动</font>
+
<font color="red">If the '''rotate.sh''' prompt cannot be found, use '''Method 1''' to install the latest drivers</font>

Revision as of 17:06, 7 July 2019

How to rotate the display direction

This method only applies to the raspberry PI series of display screens, other display screens do not apply.

  • Method 1,If the driver is not installed, execute the following command:
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD7C-show 90

After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display normally.
(This is the MPI7002-7inch-C model with a rotation of 90 degrees. Lcd7c-show can be changed to the corresponding driver, and 90 can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)

  • Method 2,If the driver is already installed, execute the following command:
cd LCD-show/
sudo ./rotate.sh 90

After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display normally.
( 90 can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)
If the rotate.sh prompt cannot be found, use Method 1 to install the latest drivers