mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix stepper jump back with small steps (#4339)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							4a374a466a
						
					
				
				
					commit
					267f0587c6
				
			| @@ -46,6 +46,7 @@ void A4988::loop() { | |||||||
|     return; |     return; | ||||||
|  |  | ||||||
|   this->dir_pin_->digital_write(dir == 1); |   this->dir_pin_->digital_write(dir == 1); | ||||||
|  |   delayMicroseconds(50); | ||||||
|   this->step_pin_->digital_write(true); |   this->step_pin_->digital_write(true); | ||||||
|   delayMicroseconds(5); |   delayMicroseconds(5); | ||||||
|   this->step_pin_->digital_write(false); |   this->step_pin_->digital_write(false); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user