New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-bmp280

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-bmp280

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

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts