parent
0dde1d09fc
commit
64f9a7666a
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(4, GPIO.OUT)
|
GPIO.setup(19, GPIO.OUT)
|
||||||
GPIO.output(4, GPIO.HIGH)
|
GPIO.output(19, GPIO.HIGH)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
GPIO.output(4, GPIO.LOW)
|
GPIO.output(19, GPIO.LOW)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue