johnny-five
Version:
The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, Raspberry Pi, Spark Core, TI Launchpad and more!
29 lines (24 loc) • 688 B
JavaScript
var five = require("../lib/johnny-five");
var board = new five.Board();
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