Socket
Book a DemoInstallSign in
Socket

analogin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analogin

Read from the analog inputs on (currently) a BeagleBone Black

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

analogin

NPM

Read analog inputs on a (currently only) a BeagleBone Black.

Very much a work-in-progress.

var AnalogIn = require("analogin")

// after connecting some sort of analog device to the beaglebone
var ain1 = AnalogIn(1)
console.log(ain1.readSync())

API

require("analogin")(input[, opts])

input is the Analog input number on the BeagleBone black, 0-7.

options:

  • scaled [true]: scale reads from 0-1 (floating point)

otherwise reads will be an integer between 0 and 1800

ain.read(callback)

Asynchronously read the value.

ain.readSync()

Read the value synchronously.

LICENSE

MIT

Keywords

beaglebone

FAQs

Package last updated on 29 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts