Difference between revisions of "Template:Rotate"
(Created page with "== <font color="blue">How to rotate the display direction</font> == <font color="red">This method only applies to the '''Raspberry Pi''' series of display screens, other disp...") |
(→How to rotate the display direction) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== <font color="blue">How to rotate the display direction</font> == | == <font color="blue">How to rotate the display direction</font> == | ||
<font color="red">This method only applies to the '''Raspberry Pi''' series of display screens, other display screens do not apply.</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: | + | *'''Method 1''',If the driver is not installed, execute the following command (Raspberry Pi needs to connected to the Internet): |
{{code| | {{code| | ||
sudo rm -rf LCD-show | sudo rm -rf LCD-show | ||
Line 7: | Line 7: | ||
chmod -R 755 LCD-show | chmod -R 755 LCD-show | ||
cd LCD-show/ | cd LCD-show/ | ||
− | sudo ./ | + | sudo ./XXX-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. <br/> | + | After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally. <br/> |
− | + | (''' ' <font color="blue">XXX-show</font> ' ''' can be changed to the corresponding driver, and ' <font color="blue">90</font> ' 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: | *'''Method 2''',If the driver is already installed, execute the following command: | ||
Line 17: | Line 17: | ||
sudo ./rotate.sh 90 | sudo ./rotate.sh 90 | ||
}} | }} | ||
− | After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display normally. <br/> | + | After execution, the system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally. <br/> |
( ' <font color="blue">90</font> ' 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="blue">90</font> ' 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">If the '''rotate.sh''' prompt cannot be found, use '''Method 1''' to install the latest drivers</font> | <font color="red">If the '''rotate.sh''' prompt cannot be found, use '''Method 1''' to install the latest drivers</font> |
Latest revision as of 18:00, 18 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 (Raspberry Pi needs to connected to the Internet):
sudo rm -rf LCD-show git clone https://github.com/goodtft/LCD-show.git chmod -R 755 LCD-show cd LCD-show/ sudo ./XXX-show 90
After execution, the driver will be installed. The system will automatically restart, and the display screen will rotate 90 degrees to display and touch normally.
( ' XXX-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 and touch 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