You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble getting the simple listener examples to work. I am using latest version of Raspbian on an original Raspberry Pi board with the original (version 1?) of the piface, with Python 3.
The piface emulator works just fine on inputs and outputs, and simple input and output examples work fine as well, so I know that the code is communicating with the piface board:
import pifacedigitalio
pfd = pifacedigitalio.PiFaceDigital() # creates a PiFace Digtal object
pfd.leds[1].turn_on() # turn on/set high the second LED
print(pfd.input_pins[0].value)
0
The last statement properly prints a 1 when run while the input 0 switch is pressed.
However, when I try the following listener example, nothing works when input 0 switch is pressed:
Have googled this and been unable to come up with anything. Do I need to explicitly enable interrupts or some other feature? Would really appreciate some help with this. Thanks!
The text was updated successfully, but these errors were encountered:
Hi, your code looks correct. Are you running the most up-to-date software on your Raspberry Pi? There was a change to the GPIO pins through which we detect interrupts. Try running:
I have the same problem. My program was running fine. Then I did a apt-get update; apt-get upgrade (which I did not do since 2014) and interrupts stopped working.
Hi there, I'm trying to inhibit the button on my Piface while the script is running, I can't seem to make it work any one any ideas?https://github.com/Brewj/Event-Trigger
Hello,
I am having trouble getting the simple listener examples to work. I am using latest version of Raspbian on an original Raspberry Pi board with the original (version 1?) of the piface, with Python 3.
The piface emulator works just fine on inputs and outputs, and simple input and output examples work fine as well, so I know that the code is communicating with the piface board:
The last statement properly prints a 1 when run while the input 0 switch is pressed.
However, when I try the following listener example, nothing works when input 0 switch is pressed:
Have googled this and been unable to come up with anything. Do I need to explicitly enable interrupts or some other feature? Would really appreciate some help with this. Thanks!
The text was updated successfully, but these errors were encountered: