Skip to content

Instantly share code, notes, and snippets.

@bassdread
Created December 8, 2013 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bassdread/7863533 to your computer and use it in GitHub Desktop.
Save bassdread/7863533 to your computer and use it in GitHub Desktop.
var BMP085 = require('bmp085'),
barometer = new BMP085(
{
'mode' : 0,
'address': 0x77,
'device': '/dev/i2c-0'
}
);
barometer.read(function (data) {
console.log("Temperature:", data.temperature);
console.log("Pressure:", data.pressure);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment