Cleanup.
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
import time
|
|
||||||
import RPi.GPIO as GPIO
|
|
||||||
|
|
||||||
GPIO_PIN = 12
|
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
|
||||||
GPIO.setup(GPIO_PIN, GPIO.OUT)
|
|
||||||
|
|
||||||
while True:
|
|
||||||
print("toggle led ON")
|
|
||||||
GPIO.output(GPIO_PIN, GPIO.LOW)
|
|
||||||
time.sleep(2)
|
|
||||||
print("toggle led OFF")
|
|
||||||
GPIO.output(GPIO_PIN, GPIO.HIGH)
|
|
||||||
time.sleep(2)
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user