PiFace and multiple Python apps - Raspberry Pi Forums
i've piface on raspberry , wondering best way control piface. i'm using interrupt mode of piface, like:
pifacedigitalio.init()
pfd = pifacedigitalio.pifacedigital()
listener = pifacedigitalio.inputeventlistener()
listener.register(dw_sensor, pifacedigitalio.iodir_both, doorwindowsensorinterupt)
listener.activate()
i've different interrupts on piface input. should handle these interrupts in 1 python application or can run multiple individual python applications?
i've 3 different application noticed 3rd application not responding on interrupts. before combining 1 application want gain advice others.
looking forward feedback.
pifacedigitalio.init()
pfd = pifacedigitalio.pifacedigital()
listener = pifacedigitalio.inputeventlistener()
listener.register(dw_sensor, pifacedigitalio.iodir_both, doorwindowsensorinterupt)
listener.activate()
i've different interrupts on piface input. should handle these interrupts in 1 python application or can run multiple individual python applications?
i've 3 different application noticed 3rd application not responding on interrupts. before combining 1 application want gain advice others.
looking forward feedback.
i've not used piface can think of possible reasons why wouldn't idea have several python programs running @ same trying use it.
if want avoid having big file in it, can keep functionality (the callback functions say) in different files , import them 1 central one.
if want avoid having big file in it, can keep functionality (the callback functions say) in different files , import them 1 central one.
raspberrypi
Comments
Post a Comment