Skip to content

Node library for the Bosch Sensortec BMP-280 Barometric Pressure Sensor.

License

Notifications You must be signed in to change notification settings

gradymorgan/node-BMP280

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node library for the Bosch Sensortec BMP-280 Barometric Pressure Sensor.

Resources

License

Stars

Watchers

Forks

Packages

No packages published