johnny-five-electron
Version:
Temporary fork to support Electron (to be deprecated)
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