ultrasonic-sensor
v0.1.13
Published
to interact with the ev3-js ultrasonic sensor
Downloads
4
Readme
ultrasonic-sensor
to interact with the ev3-js ultrasonic sensor
Installation
$ npm install ultrasonic-sensor
Usage
var USSensor = require('ultrasonic-sensor')
USSensor(3).inches // => 5.2
API
ultrasonicSensor(port)
port
- number of the port that the color sensor is plugged in to.
Returns: instance of USSensor
.inches
Read the number of inches from the ultra-sonic sensor.
.cm
Read the number of cm from the ultra-sonic sensor.
License
MIT