ultrasonic-sensor
to interact with the ev3-js ultrasonic sensor
Installation
$ npm install ultrasonic-sensor
Usage
var USSensor = 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