Add ledtest program, update oneshot

This commit is contained in:
LazyAssassin445
2017-03-11 17:08:49 +00:00
parent 4ed2b8a445
commit bc9a0d7ae6
3 changed files with 8 additions and 3 deletions

View File

@@ -4,14 +4,18 @@ import RPi.GPIO as GPIO
import time
import sys
GPIO.cleanup()
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.output(23, 0)
while True:
time.sleep(1)
time.sleep(5)
GPIO.output(23, 1)
time.sleep(1)
print("on")
time.sleep(5)
GPIO.output(23, 0)
print("off")
GPIO.cleanup()