parent
a479630fb3
commit
ed7126122e
6
test.py
6
test.py
|
@ -5,10 +5,10 @@ import RPi.GPIO as GPIO
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BOARD)
|
GPIO.setmode(GPIO.BOARD)
|
||||||
|
|
||||||
GPIO.setup(22, GPIO.OUT)
|
GPIO.setup(8, GPIO.OUT)
|
||||||
|
|
||||||
GPIO.output(22, GPIO.HIGH)
|
GPIO.output(8, GPIO.HIGH)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
GPIO.output(22, GPIO.LOW)
|
GPIO.output(8, GPIO.LOW)
|
||||||
|
|
||||||
GPIO.cleanup
|
GPIO.cleanup
|
Loading…
Reference in New Issue