0.1.13 • Published 10 years ago
ultrasonic-sensor v0.1.13
ultrasonic-sensor
to interact with the ev3-js ultrasonic sensor
Installation
$ npm install ultrasonic-sensorUsage
var USSensor = require('ultrasonic-sensor')
USSensor(3).inches // => 5.2API
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