Skip to content

Issus with Shutdown Button #2481

Closed Answered by Gen-Chan
Gen-Chan asked this question in Q&A
Jan 11, 2025 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

OK I'm sorry for your time. I have figured out what the Problem is. The Buttons I use (Joy-it Arcade Micro Button) are only sending a short impulse. I tested It with a short script

import RPi.GPIO as GPIO
import time

pin = 3
GPIO.setmode(GPIO.BCM)
GPIO.setup(pin, GPIO.IN)

try:
  while True:
    print(GPIO.input(pin))
    time.sleep(0.1)

except KeyboardInterrupt:
    GPIO.cleanup()

It gives a nearly not visible change, even I hold the button. So I used the RotarySwitch and with this it works. So I have chosen the wrong buttons for my build.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@s-martin
Comment options

@AlvinSchiller
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Gen-Chan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants