node-bmp280
v0.1.2
Published
Node library for the Bosch Sensortec BMP-280 Barometric Pressure Sensor.
Downloads
5
Readme
bmp-280
cool
Installation
$ npm install --save node-bmp280
Usage
var BMP280 = require('node-bmp280');
var barometer = new BMP280();
barometer.begin(function(err) {
if (err) {
console.info('error initializing barometer', err);
return;
}
console.info('barometer running');
setInterval(function() {
barometer.readPressureAndTemparature(function(err, pressure, temperature) {
console.info('barometer: ', pressure, temperature);
});
}, 1000);
});
License
MIT © Grady Morgan