0.5.27 • Published 9 years ago
ev3-js-motor v0.5.27
motor
Motor device for ev3.
Installation
$ npm install ev3-js-motor
Usage
var Motor = require('ev3-js-motor')
Motor('a').degrees(120, {
speed: 300,
braking: 'coast'
})
API
Motor(port)
path
- port in which the motor is connected
Returns: a motor device instance
.forever(speed)
Run motor until stopped.
speed
- speed at which to run motor
.degrees(degrees, opts)
Run motor for a number of degrees.
degrees
- number of degrees to turn the motoropts
- object of optional parameters
.rotations(rotations, opts)
Run motor for a number of rotations.
rotations
- number of rotations to turn the motoropts
- object of optional parameters
.timed(time, opts)
Run motor for a specified amount of time.
time
- time in millisecondsopts
- object of optional parameters
.runToAbsPos(position, opts)
Run motor until a specified motor position.
speed
- speed at which to run motorposition
- desired motor position
.stop()
Stop motor.
.reset()
Reset the position of the motor.
License
MIT
0.5.27
9 years ago
0.5.26
9 years ago
0.5.25
9 years ago
0.5.24
9 years ago
0.5.23
9 years ago
0.5.22
9 years ago
0.5.21
9 years ago
0.5.20
9 years ago
0.5.19
9 years ago
0.5.18
9 years ago
0.5.17
9 years ago
0.5.16
9 years ago
0.5.15
9 years ago
0.5.14
9 years ago
0.5.13
9 years ago
0.5.12
9 years ago
0.5.10
9 years ago
0.5.9
9 years ago
0.5.8
9 years ago
0.5.7
9 years ago
0.5.6
9 years ago
0.5.5
9 years ago
0.5.4
9 years ago
0.5.3
9 years ago
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.0
9 years ago
0.1.0
9 years ago