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

Explorerhat Pro CapTouch Segmentation Fault on Exit

$
0
0

Hi Mark,

That's very odd. On a Raspberry Pi 3 running the latest version of Raspbian Jessie, I can't replicate your seg. fault. This is the code that I'm using:

import explorerhat as eh

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

eh.touch.pressed(touchpad)

Then control-d to exit, and I get the expected:

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

without the seg. fault.

Are you running it interactively in a Python prompt in the terminal?


Viewing all articles
Browse latest Browse all 54991

Trending Articles