Created
April 12, 2019 03:56
-
-
Save satmandu/3fd42c5a538bc34a1636950740838d3e to your computer and use it in GitHub Desktop.
Waveshare35a config info for raspberry pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From https://www.spotpear.com/learn/EN/raspberry-pi/Raspberry-Pi-LCD/Raspberry-Pi-_Rotate-the-screen-display.html | |
Raspberry Pi - Rotate the screen display | |
Raspberry Pi 2.4/3.2 inch LCD | |
Rotate display | |
sudo nano /boot/config.txt | |
Change the parameter as follow: | |
(Rotate 90) | |
dtoverlay=waveshare32b:rotate=270 ->dtoverlay=waveshare32b:rotate=0 | |
(Rotate 180) | |
dtoverlay=waveshare32b:rotate=270 ->dtoverlay=waveshare32b:rotate=90 | |
(Rotate 270) | |
dtoverlay=waveshare32b:rotate=270 ->dtoverlay=waveshare32b:rotate=180 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "219 3835 219 3984 " | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" " 3835 219 219 3984 " | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3835 219 3984 219 " | |
Option "SwapAxes" "0" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 3.5 inch LCD | |
Rotate display | |
sudo nano /boot/config.txt | |
Change the parameter as follow: | |
(Rotate 90) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=180 | |
(Rotate 180) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=270 | |
(Rotate 270) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=0 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3932 300 3801 294 " | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" " 300 3932 3801 294 " | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" " 300 3932 294 3801 " | |
Option "SwapAxes" "0" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 4 inch LCD | |
Rotate display | |
sudo nano /boot/config.txt | |
Change the parameter as follow: | |
(Rotate 90) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=180 | |
(Rotate 180) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=270 | |
(Rotate 270) | |
dtoverlay=waveshare35a -> dtoverlay=waveshare35a:rotate=0 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "172 3950 3871 194" | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" " 172 3950 194 3871 " | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3950 172 194 3971" | |
Option "SwapAxes" "0" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 4.3inch GPIO Touchscreen LCD | |
Rotate display | |
sudo nano /boot/config.txt | |
Change the followwing: | |
display_rotate=2 | |
to | |
(Rotate 90) | |
display_rotate=1 | |
(Rotate 180) | |
display_rotate=0 | |
(Rotate 270) | |
display_rotate=3 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "208 3905 3910 288" | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "208 3905 288 3910" | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3905 208 288 3910" | |
Option "SwapAxes" "1" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 5inch GPIO Touchscreen LCD | |
Rotate display | |
sudo nano /boot/config.txt | |
Add the new parameter as follow: | |
(Rotate 90) | |
display_rotate=1 | |
(Rotate 180) | |
display_rotate=2 | |
(Rotate 270) | |
display_rotate=3 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "208 3905 3910 288 " | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3905 208 3910 288" | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3905 208 288 3910" | |
Option "SwapAxes" "1" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 7inch GPIO Touchscreen LCD(800x480)&(1024x600) | |
Rotate display | |
sudo nano /boot/config.txt | |
Add the new parameter as follow: | |
(Rotate 90) | |
display_rotate=1 | |
(Rotate 180) | |
display_rotate=2 | |
(Rotate 270) | |
display_rotate=3 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3863 36 3887 157" | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3863 36 157 3887" | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "36 3863 157 3887" | |
Option "SwapAxes" "0" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Raspberry Pi 10.1inch GPIO Touchscreen LCD(1024x600) | |
Rotate display | |
sudo nano /boot/config.txt | |
Change the followwing: | |
display_rotate=2 | |
to | |
(Rotate 90) | |
display_rotate=1 | |
(Rotate 180) | |
display_rotate=0 | |
(Rotate 270) | |
display_rotate=3 | |
Rotate touch | |
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
change as follow: | |
(Rotate 90) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "4034 31 3879 11 " | |
Option "SwapAxes" "0" | |
EndSection | |
(Rotate 180) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "31 4034 3879 11" | |
Option "SwapAxes" "1" | |
EndSection | |
(Rotate 270) | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "31 4034 11 3879" | |
Option "SwapAxes" "0" | |
EndSection | |
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit. | |
On the Terminal, enter | |
sudo reboot | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment