A general DC continous Motor which is controlled by 2 inputs.
A motor controller (such as Arduino or AdafruitMotorShield) is needed for the Motor service to attach.
One of the most useful methods is the motor's move(powerLevel). The powerLevel needs to be a float value between -1.0 and 1.0
0.0 is stop. 1.0 is full power in a clockwise direction, and -1.0 is full power is a counter clockwise direction. And fractional value will resolve to a fractional amount of power which the motor controller can supply. e.g. 0.5 would be clockwise at 1/2 power.
Interfacing a motor and motor controller in Python
Be aware that this service use AnalogWrite so it can not be used on all pins.
On the Arduino Uno pins 3,5,6,9,10 and 11 can be used.
On the Arduino Mega pins 2-13 and 44-46 can be used.
For other boards please check the reference below
MOTOR TYPE - SIMPLE - 1 PWM & 1 DIR
DFRobot v1.3 Dual 2A Hbridge
This is a 4.8-46V, 2A Dual Motor Controller which is the revised version of the DF-MDV1.0. Its performance has been improved greatly. It can bear larger current due to the increased haetsink dissipation. It is easy to control, using LGS's outstanding high-power motor driver chip, the L298N. This chip allows for direct drive of two bi-directional DC motors, and incorporates high-speed short diodes for protection. Drive current up to 2A per motor output. The driver uses a broad-brush design to reduce wire resistance.