Wrong direction and also not enabled on boot
All checks were successful
Build / build-backend (push) Successful in 4s
Build / build-web (push) Successful in 13s
Build / release (push) Successful in 6s

This commit is contained in:
2026-04-22 12:51:31 +02:00
parent d4c69e4b32
commit e43aee9b13

View File

@@ -18,7 +18,8 @@ GPIO.setup(STEP, GPIO.OUT)
GPIO.setup(DIR, GPIO.OUT) GPIO.setup(DIR, GPIO.OUT)
GPIO.setup(EN, GPIO.OUT) GPIO.setup(EN, GPIO.OUT)
GPIO.output(EN, GPIO.LOW) GPIO.output(EN, GPIO.HIGH)
motor_thread = None motor_thread = None
@@ -35,7 +36,7 @@ def motor_step():
GPIO.output(EN, GPIO.LOW) # enable driver GPIO.output(EN, GPIO.LOW) # enable driver
print("Motor running...") print("Motor running...")
step_motor(400, GPIO.HIGH, 0.001) step_motor(400, GPIO.LOW, 0.001)
GPIO.output(EN, GPIO.HIGH) # disable driver GPIO.output(EN, GPIO.HIGH) # disable driver