adafruit / Adafruit_CircuitPython_MotorKit

CircuitPython helper library for the DC & Stepper Motor FeatherWing, Shield and Pi Hat kits.
MIT License
86 stars 31 forks source link

Stepper examples might need delay #18

Closed caternuson closed 4 years ago

caternuson commented 5 years ago

These simple loops:

for i in range(100):
    kit.stepper1.onestep()

might be running too fast.

See here: https://forums.adafruit.com/viewtopic.php?f=24&t=154449&start=15#p762144

ladyada commented 5 years ago

kk wanna add a time.sleep(0.01) in there?

caternuson commented 5 years ago

Probably worth setting up and verifying the delay amount. I was just guessing at the 0.01 value and sounds like maybe it needed some tweaking. I could take a look, but don't think I currently have any of the PCA driven stepper HW. Only Crickit.

ladyada commented 5 years ago

any delay will work, i can do the commit

dhalbert commented 4 years ago

Fixed by #19.