LapsePi and capacitive PiTFT on RPi2

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
boing
 
Posts: 20
Joined: Tue Oct 21, 2014 9:00 am

LapsePi and capacitive PiTFT on RPi2

Post by boing »

Hi,

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
no change and no gpio508 folder...

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!

User avatar
TheTweedMonk
 
Posts: 1
Joined: Sun Feb 14, 2016 6:34 pm

Re: LapsePi and capacitive PiTFT on RPi2

Post by TheTweedMonk »

I have exactly the same problem.

The PiTFT works perfectly within the main operating system, but when i run

Code: Select all

sudo python lapse.py
I just get a full white screen.

I'm absolutely stumped.

Can find a solution anywhere :(

User avatar
MTMax
 
Posts: 1
Joined: Sat Mar 12, 2016 9:18 pm

Re: LapsePi and capacitive PiTFT on RPi2

Post by MTMax »

I realize this thread is quite old, but I just ran up to the same issue. Has any fix for this ever been found? I'm kind of disappointed to be stopped so close to the end!

When I reboot using the onboard button, the backlight turns on for about a second before the system reboots, but that hardly does me any good. I've had several *glimpses* of LapsePi running, but can't figure out how to get the backlight to run to make it usable for me.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”