Breadboard for "Compass - MAG3110 on Tessel 2"

Fritzing diagram: compass-MAG3110-tessel.fzz
Run this example from the command line with:
node eg/compass-MAG3110-tessel.js
const Tessel = require("tessel-io");
const { Board, Compass } = require("johnny-five");
const board = new Board({
  io: new Tessel()
});
board.on("ready", () => {
  const compass = new Compass({
    controller: "MAG3110",
    // Optionally pre-load the offsets
    offsets: {
      x: [-819, -335],
      y: [702, 1182],
      z: [-293, -13],
    },
  });
  compass.on("calibrated", offsets => {
    // Use this data with the optional "offsets" property above
    // console.log("calibrated:", offsets);
  });
  compass.on("change", () => {
    const {bearing, heading} = compass;
    console.log("Compass:");
    console.log("  bearing     : ", bearing);
    console.log("  heading     : ", heading);
    console.log("--------------------------------------");
  });
});