npm install ev3-js-motor[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]
Motor device for ev3.
$ npm install ev3-js-motor
``js`
var Motor = require('ev3-js-motor')
Motor('a').degrees(120, {
speed: 300,
braking: 'coast'
})
- path - port in which the motor is connected
Returns: a motor device instance
- speed - speed at which to run motor
- degrees - number of degrees to turn the motoropts
- - object of optional parameters
- rotations - number of rotations to turn the motoropts
- - object of optional parameters
- time - time in millisecondsopts
- - object of optional parameters
- speed - speed at which to run motorposition` - desired motor position
-
MIT
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/ev3-js-motor.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ev3-js-motor