UNPKG

bot-io

Version:

ADC, GPIO, PWM, UARTs, and more on the BeagleBone Black.

10 lines (6 loc) 218 B
'use strict'; var bot = require('../'), ain = new bot.Ain(bot.pins.p9_36); ain.once('ready', function () { console.log(ain.name + ' - ' + ain.pin.ain.channel + ' - ' + ain.rawValue() + ' - ' + ain.value()); });