Skip to content

fiskeben/bmp085

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BMP085

A node.js module for reading Adafruit's Bosch BMP085 barometer sensor using i2c.

Install

$ npm install bmp085

Usage

The module exports one function, read which takes a callback function as an argument. The callback will receive an object with the temperature (in degrees Celcius) and air pressure (in hPa).

Example:

var bmp085 = require('bmp085');
bmp085.read(function (data) {
    console.log("Temperature:", data.temperature);
    console.log("Pressure:", data.pressure);
});