Configuration of WaveShare 3.5inch display (C)

edited February 2021 in Tips & Tricks

My experience with this display: good, but if you can buy the (B) version with a realy very good IPS panel. Better view angle, and very good contrast. (B) will not illuminate the room with it's backlight. Don't buy cheap chinese clones of the obsolete WaveShare (A), they are realy bad quality.
Don't follow the install guide of WaveShare, it's outdated, wrong path of calibration file for example.

Quick guide for actual Raspian Lite, like repetier-server Raspberry image, or Octopi:

## Login to Raspberry
# update repositories
sudo apt update
# upgrade Raspberry to latest software and kernel
sudo apt dist-upgrade
# install git
sudo apt install git
# reboot
sudo reboot

## Login to Raspberry
# delete old/other LCD-show tries
rm -rf LCD-show
# get waveshare LCD-show drivers
# switch directory
cd LCD-show/
# install driver for 3.5inch (C), reboots automatically
sudo ./LCD35C-show lite
# OR with 180° rotated display
sudo ./LCD35C-show lite 180

## Login to Raspberry
# install touch driver
sudo apt install xserver-xorg-input-evdev
# create symlink to activate configuration to fix bug in Raspian OS
sudo cp -s /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
# reboot
sudo reboot

## Login to Raspberry
# start touch calibration, touch the 4 points on touchscreen
# Optional, mostly no calibration needed!
DISPLAY=:0.0 xinput_calibrator
# copy the output to notepad, example output:

Calibrating EVDEV driver for "ADS7846 Touchscreen" id=6
        current calibration values (from XInput): min_x=3936, max_x=227 and min_y=268, max_y=3880

Doing dynamic recalibration:
        Setting calibration data: 3951, 247, 194, 3904
        --> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3951 247 194 3904"
        Option  "SwapAxes"      "1"

# save the calibration information to config file, only change the 4 "Calibration" numbers, leave the rest
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
# save file with STRG-X , press y
# reboot, all should be good now
sudo reboot

Sign In or Register to comment.