var five = require('johnny-five');
var ChipIO = require('../index'); // or require('chip-io');

var board = new five.Board({
  io: new ChipIO()
});

board.on('ready', function() {
  var thermometer = new five.Thermometer({
    controller: ChipIO.Controllers.INTERNAL_TEMP
  });

  thermometer.on('change', function(data) {
    console.log('Internal temperature is ' + data.celsius.toFixed(2) + '°C');
  });
});

var five = require('johnny-five');
var chipio = require('../index'); // or require('chip-io');

var board = new five.Board({
  io: new chipio()
});

board.on('ready', function() {
  var thermometer = new chipio.InternalTemperature();

  thermometer.on('change', function(data) {
    console.log('Internal temperature is ' + data.celsius.toFixed(2) + '°C');
  });
});

Update internal temperature example to use chipio.InternalTemperature
Update internal temperature example to use chipio.InternalTemperature
