Home
last modified time | relevance | path

Searched refs:upmGrovemd (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/python/
Dgrovemd.py25 import pyupm_grovemd as upmGrovemd namespace
27 I2C_BUS = upmGrovemd.GROVEMD_I2C_BUS
28 I2C_ADDR = upmGrovemd.GROVEMD_DEFAULT_I2C_ADDR
31 myMotorDriver = upmGrovemd.GroveMD(I2C_BUS, I2C_ADDR)
36 myMotorDriver.setMotorDirections(upmGrovemd.GroveMD.DIR_CW, upmGrovemd.GroveMD.DIR_CW)
42 myMotorDriver.setMotorDirections(upmGrovemd.GroveMD.DIR_CCW,
43 upmGrovemd.GroveMD.DIR_CCW)
Dgrovemd-stepper.py25 import pyupm_grovemd as upmGrovemd namespace
27 I2C_BUS = upmGrovemd.GROVEMD_I2C_BUS
28 I2C_ADDR = upmGrovemd.GROVEMD_DEFAULT_I2C_ADDR
31 myMotorDriver = upmGrovemd.GroveMD(I2C_BUS, I2C_ADDR)
42 myMotorDriver.enableStepper(upmGrovemd.GroveMD.STEP_DIR_CW, 10)
48 myMotorDriver.enableStepper(upmGrovemd.GroveMD.STEP_DIR_CCW, 10)