Adafruit MPRLS Arduino Library
Classes | Macros
Adafruit_MPRLS.h File Reference
#include "WProgram.h"
#include "Wire.h"

Go to the source code of this file.


class  Adafruit_MPRLS
 Class that stores state and functions for interacting with MPRLS sensor IC. More...


#define MPRLS_DEFAULT_ADDR   (0x18)
 Most common I2C address.
#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.

Detailed Description

Designed specifically to work with the MPRLS sensors from Adafruit -—>

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.