parent
e430e7106d
commit
d963c9e689
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(8, GPIO.OUT)
|
GPIO.setup(24, GPIO.OUT)
|
||||||
|
|
||||||
GPIO.output(8, GPIO.HIGH)
|
GPIO.output(24, GPIO.HIGH)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
GPIO.output(8, GPIO.LOW)
|
GPIO.output(24, GPIO.LOW)
|
||||||
|
|
||||||
GPIO.cleanup
|
GPIO.cleanup
|
Loading…
Reference in New Issue