I am currently having problems starting the LapsePi script by David Hunt on a RaspberryPi2 B with the Adafruit capacitive 2.8'' PiTFT and Raspbian 3.18.14-v7+
I've installed all necessary and additional software listed in the Adafruit tutorial, the PiTFT is working fine. When I try to launch LapsePi, the PiTFT blacks out (backlight switches off) and this is it. By starting up lapse.py via SSH, I get the following:
Code: Select all
pi@raspberrypi ~ $ cd LapsePiTouch
pi@raspberrypi ~/LapsePiTouch $ sudo python lapse.py
Initting...
Setting Mouse invisible...
Setting fullscreen...
First stop - pressing control c brings up some more:
Code: Select all
Loading Icons...
Assigning Buttons
Init GPIO pins...
sh: 1: cannot create /sys/class/gpio/gpio252/direction: Directory nonexistent
sh: 1: cannot create /sys/class/gpio/gpio252/value: Directory nonexistent
Load Settings
loading background..
mainloop..
Nothing else is happening.
After rebooting, I can see the LapsePi GUI right after the start of the Pi (the seconds before the video output is switched to the PiTFT). As I have no gpio252 folders and after finding out that newer versions of the PiTFT do not use GPIO pin 252 anymore but GPIO pin 508 I tried the following from page 56 of the Adafruit documentation:
Code: Select all
sudo sh -c "echo 508 > /sys/class/gpio/export"
ls -l /sys/class/gpio
insgesamt 0
-rwxrwx--- 1 root gpio 4096 Aug 16 12:58 export
lrwxrwxrwx 1 root gpio 0 Jan 1 1970 gpiochip0 -> ../../devices/soc/3f200000.gpio/gpio/gpiochip0
-rwxrwx--- 1 root gpio 4096 Jan 1 1970 unexport
Do I need to solder the pin on the back of the PiTFT to use GPIO pin 18 and be able to control the backlight?
If so, why does LapsePi manage to switch of the backlight?
Thank you for any hint on this!