Information
How to modify the display orientation 2016-08-31
How to modify the display orientation
1. GPIO interface type LCD rotating display method:
Suitable for GPIO interface type LCD (2.4” 2.8”3.2” 3.5”).
Run command at Terminal:
sudonano /boot/config.txt
if you are using 2.4”, 2.8”or 3.2”, then find line “dtoverlay=tft9341”and add
rotate parameter value as format following:
dtoverlay=tft9341:rotate=value
if it is LCD 3.5”, then find line “dtoverlay=tft35a” and add rotate parameter value as
format following:
dtoverlay=tft35a:rotate=value
Take LCD 3.5”as example:
To rotate 0 degrees (vertical screen display), the corresponding parameter value:
dtoverlay=tft35a:rotate=0
To rotate 90degrees (horizontal screen display), the corresponding parameter
value:
dtoverlay=tft35a:rotate=90
To rotate 180degrees (vertical screen display), the corresponding parameter value:
dtoverlay=tft35a:rotate=180
To rotate 270degrees (horizontal screen display), the corresponding parameter
value:
dtoverlay=tft35a:rotate=270
Press Ctrl + X, choose Y, save and exit; and re-start to achieve..




