parent
1a7cc4bff7
commit
fd8999a188
6
test.py
6
test.py
|
@ -6,10 +6,10 @@ import RPi.GPIO as GPIO
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|
||||||
GPIO.setup(17, GPIO.OUT)
|
GPIO.setup(7, GPIO.OUT)
|
||||||
GPIO.output(17, GPIO.HIGH)
|
GPIO.output(7, GPIO.HIGH)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
GPIO.output(17, GPIO.LOW)
|
GPIO.output(7, GPIO.LOW)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue