Hi there,
for my raspberrypi /piface combo I have an interrupt handler defined.
This is the code used:
class Demonstrator(object):
...
pdf = None
listener = None
def __init__(self, setting):
...
pifacedigitalio.init()
self.pfd = pifacedigitalio.PiFaceDigital()
self.activate_eventhandler()
def activate_eventhandler(self, port=0):
self.listener = pifacedigitalio.InputEventListener(self.pfd)
self.listener.register(port, pifacedigitalio.IODIR_BOTH, self.setInput_eventhandler)
self.listener.activate()
Now as soon as activate_eventhandler is called, I can not stop the script from the console anymor.
I have to kill it by using
kill -9 PID
is there a way to handle this more gracefully?
thanks
robert




