1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-03 17:28:16 +00:00

fix stepper jump back with small steps ()

This commit is contained in:
Denis Bodor (aka Lefinnois) 2023-01-26 00:06:46 +01:00 committed by Jesse Hills
parent d2380756b2
commit 2d0a08442e
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

@ -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);