5 #ifndef _ADAFRUIT_MPL115A2_H 6 #define _ADAFRUIT_MPL115A2_H 9 #include <Adafruit_I2CDevice.h> 12 #define MPL115A2_DEFAULT_ADDRESS (0x60) 14 #define MPL115A2_REGISTER_PRESSURE_MSB \ 16 #define MPL115A2_REGISTER_PRESSURE_LSB \ 18 #define MPL115A2_REGISTER_TEMP_MSB \ 20 #define MPL115A2_REGISTER_TEMP_LSB \ 22 #define MPL115A2_REGISTER_A0_COEFF_MSB (0x04) 23 #define MPL115A2_REGISTER_A0_COEFF_LSB (0x05) 24 #define MPL115A2_REGISTER_B1_COEFF_MSB (0x06) 25 #define MPL115A2_REGISTER_B1_COEFF_LSB (0x07) 26 #define MPL115A2_REGISTER_B2_COEFF_MSB (0x08) 27 #define MPL115A2_REGISTER_B2_COEFF_LSB (0x09) 28 #define MPL115A2_REGISTER_C12_COEFF_MSB (0x0A) 29 #define MPL115A2_REGISTER_C12_COEFF_LSB (0x0B) 30 #define MPL115A2_REGISTER_STARTCONVERSION \ 37 class Adafruit_MPL115A2 { 41 bool begin(TwoWire *theWire);
42 bool begin(uint8_t addr);
43 bool begin(uint8_t addr, TwoWire *theWire);
46 float getTemperature();
47 void getPT(
float *P,
float *T);
50 Adafruit_I2CDevice *_i2c_dev = NULL;
57 void readCoefficients();
Class that stores state and functions for interacting with MPL115A2 barometric pressure sensor...
Definition: Adafruit_MPL115A2.h:37