Skip to content

Commit

Permalink
Fixes "RuntimeWarning: A physical pull up resistor is fitted on this …
Browse files Browse the repository at this point in the history
…channel!" error

- Ref: Issue Howchoo#12
- Ref: Issue Howchoo#34
  • Loading branch information
Ayitaka committed May 10, 2023
1 parent 63ad7aa commit 41e29e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions listen-for-shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import subprocess


GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.wait_for_edge(3, GPIO.FALLING)
Expand Down

0 comments on commit 41e29e6

Please sign in to comment.