ultrasonic-sensor

0.1.13 • Public • Published

ultrasonic-sensor

NPM version Code style

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

Readme

Keywords

none

Package Sidebar

Install

npm i ultrasonic-sensor

Weekly Downloads

13

Version

0.1.13

License

MIT

Last publish

Collaborators

  • danleavitt0