Template:Rotate

From LCD wiki
Revision as of 17:57, 7 July 2019 by Root (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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