Display Rotation

LCD Rotation(7" Touch)

1. Run the following command in the terminal

sudo nano /boot/config.txt
Add the following line to the beginning of the file
lcd_rotate=2

2. Exit the text editor with the following key presses

Ctrl+X then Y to save

HDMI Rotation

2. Run the following command in the terminal

sudo nano /boot/config.txt
Add the following line to the file
display_rotate=1

2. Exit the text editor with the following key presses

Ctrl+X then Y to save