MCPcopy
hub / github.com/PiLiDAR/PiLiDAR / step

Method step

lib/a4988_driver.py:58–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 return (steps / (self.microsteps * self.gear_ratio)) * self.step_angle
57
58 def step(self):
59 GPIO.output(self.step_pin, True)
60 sleep(0.0001)
61 GPIO.output(self.step_pin, False)
62 sleep(self.delay)
63
64 def move_steps(self, steps):
65 direction = steps < 0 # < clockwise positive

Callers 1

move_stepsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected