GPIO Input Not Detecting Button Press #441
Unanswered
moreorover
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm not quite sure, but in the python program you are registering all the pins and logging their state changes. Perhaps you are using the wrong pin in Java? Since you are using BCM Pin 17, is your button connected to physical pin 11? See the chart here: https://pinout.xyz/pinout/pin11_gpio17/ Also see the following documentation page: https://www.pi4j.com/getting-started/understanding-the-pins/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Pi4J in a Java application on a Raspberry Pi to read button presses from GPIO pin 17. However, the event listener does not trigger when the button is pressed.
Here is the output of the script:
If I terminate this program and run python script to check if that works I get the console logs for the button press as expected.
Here is my Raspberry Pi information:
Any ideas where is the problem?
Beta Was this translation helpful? Give feedback.
All reactions