Skip to content

Commit

Permalink
fix stepper jump back with small steps (#4339)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDRRB committed Jan 25, 2023
1 parent 4a374a4 commit 267f058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esphome/components/a4988/a4988.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 267f058

Please sign in to comment.