WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Bosch/BMP085.h

Bosch I2C pressure and temperature sensor capable of measuring 30000 Pa to 110000 Pa. Equivalent to 500m below sea level up to 9,000m above sea level.
BMP085.jpg
This must be connected to an I2C bus. It may be defined using:
BMP085 sensor = MAKE_BMP085(0);
Where the parameter is a value from 0 to 3. Higher numbers are more accurate but require more current and take longer to return values.
The sensor should be initialised in appInitHardware using:-
pressureInit(sensor);
The sensor can then be read using:-
pressureRead(sensor);
and then the pressure, in Pascals, will be in sensor.pressure.pa and the temperature, in celsius, will be in sensor.celsius.

Valid XHTML 1.0 Transitional