new DcMotor()
Example
mcore.DcMotor()
.speed(100)
.reverse() // run with speed -100
.run();
Extends
Members
-
static SUPPORT
-
a getter interface, which returns the mainboards the DcMotor module supported
-
protocol
-
a getter interface, which returns the protocol
Methods
-
run()
-
run with previously parameters setting
- Overrides:
Example
mcore.DcMotor().speed(255).run();
-
setReverse()
-
run reversely
-
setStop() → {Instance}
-
Stop motor
Returns:
Instance -the motor instance
- Inherited From:
-
speed(speed) → {Instance}
-
Set speed to the motor
Parameters:
Name Type Description speed
Number Returns:
Instance -the motor instance
- Inherited From: