johnny-five-electron
Version:
Temporary fork to support Electron (to be deprecated)
34 lines (29 loc) • 847 B
JavaScript
var five = require("../lib/johnny-five");
var Edison = require("edison-io");
var board = new five.Board({
io: new Edison()
});
board.on("ready", function() {
// Plug the LED module into the
// Grove Shield's D6 jack.
//
// Select an LED from the kit
// (red, green, blue) and insert
// it into the LED module, with
// the long pin in + and short
// pin in -.
var led = new five.Led(6);
// This will blink the LED over
// 500ms periods.
led.blink(500);
});
// @markdown
// For this program, you'll need:
//
// 
//
// 
//
// 
//
// @markdown