Adafruit MPRLS Arduino Library
|
#include "WProgram.h"
#include <Adafruit_I2CDevice.h>
Go to the source code of this file.
Classes | |
class | Adafruit_MPRLS |
Class that stores state and functions for interacting with MPRLS sensor IC. More... | |
Macros | |
#define | MPRLS_DEFAULT_ADDR (0x18) |
Most common I2C address. | |
#define | MPRLS_READ_TIMEOUT (20) |
millis | |
#define | MPRLS_STATUS_POWERED (0x40) |
Status SPI powered bit. | |
#define | MPRLS_STATUS_BUSY (0x20) |
Status busy bit. | |
#define | MPRLS_STATUS_FAILED (0x04) |
Status bit for integrity fail. | |
#define | MPRLS_STATUS_MATHSAT (0x01) |
Status bit for math saturation. | |
#define | COUNTS_224 (16777216L) |
Constant: 2^24. | |
#define | PSI_to_HPA (68.947572932) |
Constant: PSI to HPA conversion factor. | |
#define | MPRLS_STATUS_MASK (0b01100101) |
Sensor status mask: only these bits are set. | |
Designed specifically to work with the MPRLS sensors from Adafruit -—> https://www.adafruit.com/products/3965
These sensors use I2C to communicate, 2 pins (SCL+SDA) are required to interface with the breakout.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text here must be included in any redistribution.