var i2c = require('i2c');
var address = 0x04;
var wire = new i2c(address, {device: '/dev/i2c-1'});

exports.init = function () {
  wire.scan(function (err, data) {
    console.log(data);
  });
}

exports.send = function (score) {
  var buf = new Buffer([score]);
  wire.writeBytes(0x + score, score, function (err) {
    console.log(err);
  });
}

var i2c = require('i2c');
var address = 0x04;
var wire = new i2c(address, {device: '/dev/i2c-1'});

exports.init = function () {
  wire.scan(function (err, data) {
    console.log(data);
  });
}

exports.send = function (score) {
  var buf = new Buffer([score]);
  wire.writeBytes(score.toString(16), score, function (err) {
    console.log(err);
  });
}

debug debug