md: C implementation; C++ wraps C

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-10-18 17:02:33 -06:00
parent df5b3805c5
commit 8ac8be9e0a
16 changed files with 813 additions and 397 deletions

View File

@ -40,13 +40,13 @@ def main():
myMotorDriver.setStepperSteps(100)
# let it go - clockwise rotation, 10 RPM speed
myMotorDriver.enableStepper(upmmd.MD.STEP_DIR_CW, 10)
myMotorDriver.enableStepper(upmmd.MD_STEP_DIR_CW, 10)
time.sleep(3)
# Now do it backwards...
myMotorDriver.setStepperSteps(100)
myMotorDriver.enableStepper(upmmd.MD.STEP_DIR_CCW, 10)
myMotorDriver.enableStepper(upmmd.MD_STEP_DIR_CCW, 10)
# now disable
myMotorDriver.disableStepper()