BMP085 (OP-LIB-013)

From openPicus Wiki
Jump to: navigation, search

Contents

Description

This library is designed for BMP085 temperature and pressure sensor.

Content

  • BMP085.c
  • BMP085.h

Download

OP-LIB-013

Importing into OpenPicus IDE

Import ALL the files of the library using the button “external lib” of the IDE, then Include BMP085.h in the files in which you want to use the functions (using the directive #include “BMP085.h”).

How To import external Lib Tutorial

Data Type

Data Type Description
BMP085_ADDRESS Contains the I2C address of the BMP085. Default on 0xEE.
[extern] float BMP085temperature, BMP085pressure; These variables are defined in the BMP085.c library and can be used to contain the specific values. Declare them extern float.


Commands


vSetConfigurationBMP085

Function to read the calibration data from the BMP085.

void vSetConfigurationBMP085();


bmp085_read_temperature_and_pressure

Function to set the read both the temperature and the barometric pressure.

void bmp085_read_temperature_and_pressure (&BMP085temperature,&BMP085pressure);
Argument Description
float BMP085temperature temperature value (°C)
float BMP085pressure barometric pressure value (mbar)


Related Resources

Credits

Personal tools
Namespaces

Variants
Actions
START HERE
DEVELOPMENT
HARDWARE INFO
RESOURCES
PHASED OUT
Toolbox