Skip to content

Instantly share code, notes, and snippets.

@jukra
jukra / i2c.js
Last active September 28, 2015 07:41 — forked from rwaldron/i2c.js
var five = require('johnny-five'),
board, button;
board = new five.Board();
board.on("ready", function() {
board.sendI2CConfig();
var LSM303_CTRL_REG1_A = 0x20
, LSM303_CTRL_REG2_A = 0x21