UNPKG
bot-io
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
0.1.1
0.1.0
ADC, GPIO, PWM, UARTs, and more on the BeagleBone Black.
github.com/fivdi/bot-io
fivdi/bot-io
bot-io
/
test
/
adc-input.js
10 lines
(6 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'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
()); });