0.1.16 • Published 8 years ago

touch-sensor v0.1.16

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

touch-sensor

NPM version Code style

read information from EV3 touch sensor

Installation

$ npm install ev3-js-touch-sensor

Usage

var TouchSensor = require('touch-sensor')
TouchSensor(3).value // => 0

API

TouchSensor(port)

  • port - number of port where the touch sensor is connected

Returns: instance of TouchSensor

.value

Get the value of the touch sensor.

Returns: either 0 or 1 to indicate the state of the touch sensor

valuestate
0not pressed
1pressed

License

MIT

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago