DC Motor class for dc motor control on the adafruit motor shield
See also: arduinoioaddons.adafruit.motorshieldv2.
Speed - The speed value set for the motor
Parent - The parent shield for object (read only)
MotorNumber - The motor number (read only) values 1-4
IsRunning - boolean for if the motor is started (read only)
Constructor to create dcmotor object
mObj - the motor shield object
mnum - The motor number (1 - 4)
propertyname, propertyvalue - Optional property name/value pairs to pass to motor object.
Current known properties are:
Initial speed (default 0). Should be a value between -1 and 1.
s - a dcmotorv2 object
a = arduino()
ms = addon(a, "adafruit/motorshieldv2")
mtr = dcmotor(ms, 1)
Start the motor moving in previously set speed/direction
dcObj - the dcmotor object
None
See also: adafruit.motorshieldv2.
Stop the motor moving
dcObj - the dcmotor object
None
See also: adafruit.motorshieldv2.
Package: arduino