new BaseMotor(port)
It is a base Class of Motor
Parameters:
Name | Type | Description |
---|---|---|
port |
Number |
Extends
- Electronic
Methods
-
abstract run()
-
This interface should be overwrite by child class
-
setStop() → {Instance}
-
Stop motor
Returns:
Instance -the motor instance
-
speed(speed) → {Instance}
-
Set speed to the motor
Parameters:
Name Type Description speed
Number Returns:
Instance -the motor instance