UNPKG
bonescriptjtjk
Version:
latest (0.5.1)
0.5.1
Physical computing library for embedded Linux
github.com/jtjk/bonescript
jtjk/bonescript
bonescriptjtjk
/
test
/
TODO
/
test-digitalread.js
10 lines
(7 loc)
•
214 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
b =
require
(
'bonescript'
); b.
pinMode
(
'P8_19'
, b.
INPUT
,
undefined
,
undefined
,
undefined
, doRead);
function
doRead
(
) { b.
digitalRead
(
'P8_19'
,
function
(
x
) {
console
.
log
(
JSON
.
stringify
(x)); }); }