• sales

    +86-0755-88291180

Raspberry Pi 1.54inch LCD-Raspbian-Touch configuration tutorial

sudo apt-get install xserver-xorg-input-evdev --fix-missing  -y

make sure you have installed xserver-xorg-input-evdev successfully , Can not have any errors

sudo mkdir -p /usr/share/X11/xorg.conf.d
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Add the following code
Section "InputClass"

        Identifier      "calibration"

        MatchProduct    "ADS7846 Touchscreen"

        Option  "Calibration"   "326 3536 3509 256"

        Option  "SwapAxes"      "1"

        Option "EmulateThirdButton" "1"

        Option "EmulateThirdButtonTimeout" "1000"

        Option "EmulateThirdButtonMoveThreshold" "300"

EndSection

 

sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

sudo apt-get install xinput-calibrator
sudo nano /boot/config.txt
Add the following code
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=50000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900


Then reboot and the touch works now

TAG: Milk V Windows Environment User Guide Raspberry Pi ZERO Camera ESP32-S3 Round LCD Electronic EYE 0.71 inch Round LCD Display Screen For Arduino Raspberry Pi ESP32 Pico STM32 5inch Raspberry Pi Touch Display 2 5-inch Official Original 720x1280 LCD DSI/MIPI Screen R7FA4 PLUS B Development Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 WiFi Raspberry Pi RP2040-Keyboard-3 Raspberry Pi Mini TV Raspberry Pi 5 USB Audio Raspberry Pi IR Thermal Imagi Raspberry Pi 5/4B easy Adapter Micro HDMI to HDMI 4K All Ports To Pi's USB Side Arduino Board Managers Tutorial User Guide Serial UART Bus Servo ST3020 TTL 25KG.CM Magnetic-Encoder High precision and Large torque SpotPear 2.13Inch E-Ink Pi5 Fan Industrial USB to RS485 Converter X1301 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also For 4B/3B