From 267f0587c6a9421f7db8688bf1f43b9c2f029659 Mon Sep 17 00:00:00 2001 From: "Denis Bodor (aka Lefinnois)" Date: Thu, 26 Jan 2023 00:06:46 +0100 Subject: [PATCH] fix stepper jump back with small steps (#4339) --- esphome/components/a4988/a4988.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/a4988/a4988.cpp b/esphome/components/a4988/a4988.cpp index 429fa25648..ae2df3233a 100644 --- a/esphome/components/a4988/a4988.cpp +++ b/esphome/components/a4988/a4988.cpp @@ -46,6 +46,7 @@ void A4988::loop() { return; this->dir_pin_->digital_write(dir == 1); + delayMicroseconds(50); this->step_pin_->digital_write(true); delayMicroseconds(5); this->step_pin_->digital_write(false);