• 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: RS485 to CAN SpotPear ESP32 S3 AI 4.3inch (C) Industrial Development Board 4.3 inch TouchScreen Display Sensor CAN I2C RS485 DeepSeek Milk-V Duo S 512MB SG2000 RISC-V Raspberry Pi Pico 1.14inch LCD ESP32 Thermal imaging camera Raspberry Pi 7 inch HMI industrial DSI Display LCD 7inch TouchScreen Computer 720×1280 4 inch e Paper HAT+ E Ink Spectra E6 Full-Color 600x400 Screen Display For Arduino /Raspberry Pi /Jetson Nano /STM32 Intel 12th ESP32 Development Board C3 1.28 inch Round Rotary LCD Smart Screen 1.28inch Knob Display 240x240 LVGL for Arduino RS485 to Ethernet ESP32 S3 AI 1.54inch Development Board 1.54 inch TouchScreen Display DeepSeek Raspberry Pi Pico 2 RP2350 1.47 inch LCD B Display Development board RP2350A 1.47inch Screen RGB color Industrial Isolated RS485 TO ETH (C) RJ45 Converter Wall/Rail-Mount For Modbus Raspberry Pi Starlight Camera IR-CUT IMX462 (A) Sensor 2MP 90 Degree Milk-V Duo Spotpear Product Tutorial Catalog How to use host device Spotpear X1009 Raspberry Pi 5 PCIe To 5-Port SATA SATA3.0 (NOT BOOT From SATA)