Raspberry Pi + Display Waveshare LCD 1024×600 HDMI Touch

Waveshare Electronics from Shenzhen (China) has several displays in different sizes in its portfolio. The smaller 3.2 to 4.0 are GPIO SPI displays and the larger ones are operated via HDMI. Interesting are the two displays 7inch and 10.1inch HDMI LCD, 1024×600, where the Raspberry Pi B is connected via the GPIO connectors and the power supply plus touch function for the display also runs over it.

 

Info

Weight: 0.261 kg

Resolution: 1024×600 Pixel

Delivery package: 7inch HDMI LCD, HDMI connector, Touch pen, Display screws pack (4pcs), DVD

Installation:

The LCD-show installation doesn't work like this under Raspbian Stretch Desktop anymore.

1. Install

pi@raspberrypi ~ $ sudo apt-get update && sudo apt-get -y upgrade
pi@raspberrypi ~ $ sudo apt-get install -y xserver-xorg-input-evdev

2. Configuration

The LCD display uses an XPT2046 touch chip, which is compatible with the ADS7846.

pi@raspberrypi ~ $ sudo nano /boot/config.txt

#LCD Display HDMI Touchscreen Waveshare 7inch 1024×600
dtparam=i2c_arm=on
dtparam=spi=on
enable_uart=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

3. Calibration

pi@raspberrypi ~ $ sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
  Identifier "calibration"
  MatchProduct "ADS7846 Touchscreen"
  Option "Calibration" "59 3985 3882 172"
  Option "SwapAxes" "1"
  Driver "evdev"
EndSection

pi@raspberrypi ~ $ sudo reboot

4. Restart

pi@raspberrypi ~ $ sudo reboot

5. New calibration (Optional)

pi@raspberrypi ~ $ sudo apt-get install -y xinput-calibrator

Menu -> Settings -> Touchscreen calibration

Copy the new values and insert them under the "calibration" option.

Comments:

Allowed HTML-Tags: <strong>, <a href="">, <em>
Info: Comment will be shown shortly after processing.