• 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 Pico 1024×600 ESP32-S3 SIM7670G 4G Development Board With Camera LTE Cat-1/4G/GNSS/GPS Global Band Portable WIFI Industrial grade isolated USB to RS232/485 converter supports USB to 2-way RS232 + 2-way RS232/485 original FT4232HL ESP32-P4-NANO Development Board RISC-V WiFi6 MIPI CSI Camera / 10.1 inch DSI Display / USB / RJ45 Ethernet / POE / Audio Buzzer ESP32-C5 3.5inch LCD For Xiaozhi AI Development Board Display 320×480 3.5 inch TouchScreen Camera 0.85inch LCD ESP32 S3 Development Board 2.8 inch Round LCD Display 480x480 QMI8658 Sensor / MIC / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino ADXL354BEZ Raspberry Pi 5 5V5A Power Raspberry Pi Autofocus Camera Raspberry Pi 5 inch e-Paper ink screen display black white 960×552 For Arduino /Jetson /STM32 /ESP32 ESP32 S3 AI 0.85inch Development Board 0.85 inch DeepSeek RGB surround light X1006 Raspberry Pi 5 PCIe To 2.5 SATA And M.2 KEY-B 2280 SSD/HDD Double-SATA (NOT BOOT From SATA/SSD PC USB Monitor Screen 7.5 inch Passive NFC e-Paper V2 BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer For Mobile APP Raspberry Pi Pico 2 W RP2350 Pico2W ARM Cortex-M33 And RISC-V Hazard3 Wi-Fi4 Bluetooth5.2 CYW43439 X1003 Raspberry Pi 5 PCIe to M.2 NVMe SSD MINI Adapter Board HAT Pi5 2242 2230 Raspberry Pi 5 Audio Jack Raspberry Pi RP2040 LoRa-HF Arduino IR Thermal Imaging Camera