I picked this inexpensive LCD up at MicroCenter for my Raspberry Pi, but getting it to work was a bit of a chore.
I wanted to install it onto a Raspberry Pi 2 which is already set up and running some software of mine. Therefore, I wanted to install it in as few steps as possible. Fortunately, WaveShare provides some drivers (but they don’t clearly document the setup process).
Here’s now to set it up:
Do the normal update/upgrade procedure:
sudo apt-get update && sudo apt-get upgrade
Download the correct “LCD-show-*” driver for your version of Raspbian Jessie from the Drivers section of the product page on WaveShare, and transfer it to your Pi, or use the following example commands from your Pi to download it directly:
wget http://www.waveshare.com/w/upload/9/9d/LCD-show-151020.tar.gz tar xvzf LCD-show-151020.tar.gz cd LCD-show/
and run this command to set up the 3.2″ screen. :
Note: You may need to have the SPI interface already turned up via raspi-config before this will work.
Important note: The LCD32-show and LCD-hdmi scripts will overwrite several system files. If you have customized them, or have concerns, you are strongly advised to read through the scripts before running, and consider merging the changes in manually. Here is the list of touched files:
After a few seconds, you Pi will reboot, and the screen should be active. You can refer back to the WaveShare page to see documentation on how to switch to HDMI and back to the LCD.
Follow these steps to download and install xinput_calibrator to calibrate the touchscreen. I noticed that on my panel, the touchscreen does not respond well to input; I suspect I have a defective panel.
sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gz ./configure make sudo make install
Now, following the directions from WaveShare, you can run this command to calibrate the touchscreen:
Refer to WaveShare’s page on how to edit 99-calibration.conf to save the calibration data so it persists over reboots.
Comments are welcome.