Quantcast
Channel: Pimoroni Buccaneers - Latest posts
Viewing all articles
Browse latest Browse all 53866

Explorerhat Pro CapTouch Segmentation Fault on Exit

$
0
0

Hello,

I have a Raspberry Pi 3 with 2016-03-18-raspbian-jessie and running Python 2.7.9.

The captouch buttons work fine but when the program exits, there is usually a segmentation fault. At startup, the callback function is registered with the pressed() function. The touchpad() function just prints the key presses.

startup

explorerhat.touch.pressed(touchpad)

touchpad

def touchpad(channel, event):
print "Got {} on {}".format(event, channel)

Output

Explorer HAT Pro detected...
Startup
Got press on 4
Got press on 3
Got press on 2
Got press on 1

Explorer HAT exiting cleanly, please wait...
Stopping flashy things...
Stopping user tasks...
Cleaning up...
Goodbye!
Segmentation fault

This may be a timing problem. It always happens from a GUI terminal but does not always happen from an SSH shell.

Thank you,

Mark


Viewing all articles
Browse latest Browse all 53866

Trending Articles