parent
d963c9e689
commit
55747b4228
6
test.py
6
test.py
|
@ -5,10 +5,10 @@ import RPi.GPIO as GPIO
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|
||||||
GPIO.setup(24, GPIO.OUT)
|
GPIO.setup(22, GPIO.OUT)
|
||||||
|
|
||||||
GPIO.output(24, GPIO.HIGH)
|
GPIO.output(22, GPIO.HIGH)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
GPIO.output(24, GPIO.LOW)
|
GPIO.output(22, GPIO.LOW)
|
||||||
|
|
||||||
GPIO.cleanup
|
GPIO.cleanup
|
Loading…
Reference in New Issue