slower test and print gpio
parent
f32993ba62
commit
bc2e15111d
|
@ -40,23 +40,23 @@ print("Down Off")
|
|||
GPIO.output(17, GPIO.LOW)
|
||||
time.sleep(1)
|
||||
|
||||
print("Right 1 sec")
|
||||
print("Right GPIO 5")
|
||||
GPIO.output(5, GPIO.HIGH)
|
||||
time.sleep(1)
|
||||
time.sleep(2)
|
||||
GPIO.output(5, GPIO.LOW)
|
||||
|
||||
print("Left 1 sec")
|
||||
print("Left GPIO 6")
|
||||
GPIO.output(6, GPIO.HIGH)
|
||||
time.sleep(1)
|
||||
time.sleep(2)
|
||||
GPIO.output(6, GPIO.LOW)
|
||||
|
||||
print("Up 1 sec")
|
||||
print("Up GPIO 16")
|
||||
GPIO.output(16, GPIO.HIGH)
|
||||
time.sleep(5)
|
||||
time.sleep(2)
|
||||
GPIO.output(16, GPIO.LOW)
|
||||
|
||||
print("Down 1 sec")
|
||||
print("Down GPIO 17")
|
||||
GPIO.output(17, GPIO.HIGH)
|
||||
time.sleep(1)
|
||||
time.sleep(2)
|
||||
GPIO.output(17, GPIO.LOW)
|
||||
|
||||
|
|
Loading…
Reference in New Issue