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, pcDuino3, Raspberry Pi, Particle/Spark Core & Photon, Tessel 2, TI Launchpad and more!
36 lines (31 loc) • 959 B
JavaScript
var five = require("../lib/johnny-five");
var Edison = require("edison-io");
var board = new five.Board({
io: new Edison()
});
var Oled = require("oled-js");
board.on("ready", function() {
// Plug the OLED Display module into the
// Grove Shield's I2C jack
var opts = {
width: 128,
height: 64,
address: 0x3D
};
var oled = new Oled(board, five, opts);
// Check out the Oled.js API!
// https://github.com/noopkat/oled-js#available-methods
});
// @markdown
// For this program, you'll need:
//
// 
//
// 
//
// 
//
// - [Grove - OLED Display 1.12"](http://www.seeedstudio.com/depot/Grove-OLED-Display-112-p-781.html)
//
//
// @markdown