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
/
example
/
blink-onboard-led-1hz.js
11 lines
(7 loc)
•
196 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
var
bot =
require
(
'../'
), led0 =
new
bot.
Led
(bot.
Led
.
USR0
); led0.
once
(
'ready'
,
function
(
) {
// Blink at 1Hz. Cycle = 1000ms, on for 500ms, off for 500ms.
led0.
blink
(); });