parent
ade4cc7f5d
commit
fb90b45f69
3
test.py
3
test.py
|
@ -3,9 +3,10 @@ import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
|
||||||
|
GPIO.cleanup()
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|
||||||
GPIO.cleanup()
|
|
||||||
GPIO.setup(4, GPIO.OUT)
|
GPIO.setup(4, GPIO.OUT)
|
||||||
GPIO.output(4, GPIO.HIGH)
|
GPIO.output(4, GPIO.HIGH)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
Loading…
Reference in New Issue