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
/
doc
/
led.js
8 lines
(5 loc)
•
118 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
bot =
require
(
'../'
), led =
new
bot.
Led
(bot.
pins
.
p9_26
); led.
on
(
'ready'
,
function
(
) { led.
heartbeat
(); });