Adafruit MLX90640 Sensor Library
|
Class that stores state and functions for interacting with the MLX90640 sensor. More...
#include <Adafruit_MLX90640.h>
Public Member Functions | |
Adafruit_MLX90640 () | |
Instantiates a new MLX90640 class. | |
boolean | begin (uint8_t i2c_addr=MLX90640_I2CADDR_DEFAULT, TwoWire *wire=&Wire) |
Sets up the hardware and initializes I2C. More... | |
mlx90640_mode_t | getMode (void) |
Get the frame-read mode. More... | |
void | setMode (mlx90640_mode_t mode) |
Set the frame-read mode. More... | |
mlx90640_resolution_t | getResolution (void) |
Get resolution for temperature precision. More... | |
void | setResolution (mlx90640_resolution_t res) |
Set resolution for temperature precision. More... | |
mlx90640_refreshrate_t | getRefreshRate (void) |
Get max refresh rate. More... | |
void | setRefreshRate (mlx90640_refreshrate_t res) |
Set max refresh rate - too fast and we can't read the the pages in time, start low and then increment while speeding up I2C! More... | |
int | getFrame (float *framebuf) |
Read 2 pages, calculate temperatures and place into framebuf. More... | |
Public Attributes | |
uint16_t | serialNumber [3] |
Unique serial number read from device. | |
Class that stores state and functions for interacting with the MLX90640 sensor.
boolean Adafruit_MLX90640::begin | ( | uint8_t | i2c_addr = MLX90640_I2CADDR_DEFAULT , |
TwoWire * | wire = &Wire |
||
) |
Sets up the hardware and initializes I2C.
i2c_addr | The I2C address to be used. |
wire | The Wire object to be used for I2C connections. |
mlx90640_mode_t Adafruit_MLX90640::getMode | ( | void | ) |
Get the frame-read mode.
void Adafruit_MLX90640::setMode | ( | mlx90640_mode_t | mode | ) |
Set the frame-read mode.
mode | Chess or interleaved mode |
mlx90640_resolution_t Adafruit_MLX90640::getResolution | ( | void | ) |
Get resolution for temperature precision.
void Adafruit_MLX90640::setResolution | ( | mlx90640_resolution_t | res | ) |
Set resolution for temperature precision.
res | The desired resolution (bits) |
mlx90640_refreshrate_t Adafruit_MLX90640::getRefreshRate | ( | void | ) |
Get max refresh rate.
void Adafruit_MLX90640::setRefreshRate | ( | mlx90640_refreshrate_t | rate | ) |
Set max refresh rate - too fast and we can't read the the pages in time, start low and then increment while speeding up I2C!
rate | How many pages per second to read (2 pages per frame) |
int Adafruit_MLX90640::getFrame | ( | float * | framebuf | ) |
Read 2 pages, calculate temperatures and place into framebuf.
framebuf | 24*32 floating point memory buffer |