Motor driver fix
This commit is contained in:
@@ -40,7 +40,10 @@ def motor_loop():
|
|||||||
while True:
|
while True:
|
||||||
if not motor_running:
|
if not motor_running:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
print("Waiting for motor to start...")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
print("Motor running...")
|
||||||
step_motor(200, GPIO.HIGH, 0.001)
|
step_motor(200, GPIO.HIGH, 0.001)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user