Install on Raspberry PI
I have only tried it on a Raspberry2. I don't know how the older ones or the Zero behave. I actually tried to make it work with the Zero, but the Touchscreen didn't work under pygame, but that's maybe due to my horrible soldering skills. The display actually did show the boot process....
The wiki in https://github.com/watterott/RPi-Display contains various information about the display. Use the latest WHEEZY image, http://www.watterott.net/fbtft/2015-05-05-raspbian-2015-05-24-fbtft-rpi-display.zip, for the raspberry.
pygame and touchscreen don't work correctly in jessie. See https://forums.adafruit.com/viewtopic.php?f=47&t=76169&p=404358 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798160
- Install pi from the given image.
- Enable the wlan as described in https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md .
sudo apt-get update
sudo apt-get install libts-bin evtest xinput python-dev python-pip
sudo easy_install-2.7 pip
sudo pip-2.7 install evade
sudo evtestto find out which exentX is your touchscreen. In my system it is
- Calibrate the display using
TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/eventX sudo ts_calibrate.
The Display should work now and the touchscreen can be used. Now lets install die PDU1800. Again, everything is meant to be run as
pi (or any other non-root-user)
sudo pip-2.7 install pygame
git clone https://github.com/sumpfgottheit/pdu1800.git. This will create a directory
- Run the PDU1800 with the command
sudo python main.py
That's it. Touch the screen to be able to quit the program or to shutdown the entire pi. If you want to run the program at startup, add the following lines to the file
/etc/rc.local before the
cd /home/pi/pdu1800 nohup python main.py >/tmp/pdu1800.out 2>&1 &