Class that stores state and functions for interacting with the MLX90640 sensor.
More...
#include <Adafruit_MLX90640.h>
|
uint16_t | serialNumber [3] |
| Unique serial number read from device.
|
|
Class that stores state and functions for interacting with the MLX90640 sensor.
◆ begin()
Sets up the hardware and initializes I2C.
- Parameters
-
i2c_addr | The I2C address to be used. |
wire | The Wire object to be used for I2C connections. |
- Returns
- True if initialization was successful, otherwise false.
◆ getMode()
Get the frame-read mode.
- Returns
- Chess or interleaved mode
◆ setMode()
Set the frame-read mode.
- Parameters
-
mode | Chess or interleaved mode |
◆ getResolution()
Get resolution for temperature precision.
- Returns
- The desired resolution (bits)
◆ setResolution()
Set resolution for temperature precision.
- Parameters
-
res | The desired resolution (bits) |
◆ getRefreshRate()
Get max refresh rate.
- Returns
- How many pages per second to read (2 pages per frame)
◆ setRefreshRate()
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!
- Parameters
-
rate | How many pages per second to read (2 pages per frame) |
◆ getFrame()
int Adafruit_MLX90640::getFrame |
( |
float * |
framebuf | ) |
|
Read 2 pages, calculate temperatures and place into framebuf.
- Parameters
-
framebuf | 24*32 floating point memory buffer |
- Returns
- 0 on success
◆ getTa()
float Adafruit_MLX90640::getTa |
( |
bool |
newFrame = true | ) |
|
Return ambient temperature of the TO39 package.
- Parameters
-
newFrame | If true, will also capture a new data frame. If false, return the value from the last data frame read. |
- Returns
- Ambient temperature as a float in degrees Celsius.
The documentation for this class was generated from the following files: