Update print.py
This commit is contained in:
2
print.py
2
print.py
@@ -4,8 +4,6 @@ import time
|
|||||||
# Setup
|
# Setup
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
PIN = 26
|
PIN = 26
|
||||||
|
|
||||||
# Setup pin as input with pull-up
|
|
||||||
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||||
|
|
||||||
print(f"Monitoring GPIO{PIN}. Press Ctrl+C to exit.")
|
print(f"Monitoring GPIO{PIN}. Press Ctrl+C to exit.")
|
||||||
|
|||||||
Reference in New Issue
Block a user