• 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: Raspberry Pi 13.3 inch DSI MIPI Display 13.3inch LCD Capacitive TouchScreen 1920x1080 Raspberry Pi 8.8 inch DSI MIPI Display LCD Capacitive TouchScreen 480x1920 Raspberry Pi 5 Case Jetson Nano IO Board Jetson Nano PWM Fan Raspberry Pi 0.96inch RGB OLED 10-Axis DOF ROS IMU (A) Sensor UART ARM 32 DSP Processor BLE 5.3 Bluetooth / Accelerometer / Gyroscope / Magnetometer / Temperature & Pressure ESP32-S3 1.28inch GPS LCD Driver Board Industrial USB TO 8CH TTL Converter USB to UART Multi Protection Circuits Multi Systems Raspberry Pi Audio Arduino MEGA2560 R3 Raspberry Pi 5 Jetson Nano Heatsink FT4232HL USB TTL RS232 Industrial UART 4-Ch UART JETSON NANO MINI 7inch Monitor Display Raspberry Pi 5 Official Red-White Case Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino Raspberry Pi MLX90640