# XPT2046 touch controller setup

  • Author: Admin
  • Published On: 3/18/2026
  • Category: editor
  • youtube refference
  • + https://www.youtube.com/watch?v=LfoMkDJx4Ls
  • install driver
  •     sudo rm -rf LCD-show
    	git clone https://github.com/goodtft/LCD-show.git
    	chmod -R 755 LCD-show
    	cd LCD-show/
    	sudo ./LCD35-show
    	

  • Touch screen calibration
  • 	cd LCD-show/
        sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
    	

  • rotate the display direction
  • 	sudo rm -rf LCD-show
    	git clone https://github.com/goodtft/LCD-show.git
    	chmod -R 755 LCD-show
    	cd LCD-show/
    	sudo ./LCD35-show  
    	

    If the driver is already installed, execute the following command:

    	cd LCD-show/
        sudo ./rotate.sh 90
    	

    (' 90 ' can be changed to 0, 90, 180 and 270, respectively representing rotation angles of 0 degrees, 90 degrees, 180 degrees, 270 degrees)

  • Share On: