mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
fix stepper jump back with small steps (#4339)
This commit is contained in:
parent
d2380756b2
commit
2d0a08442e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue