Class that stores state and functions for interacting with AMG88xx IR sensor chips.
More...
#include <Adafruit_AMG88xx.hpp>
|
| | Adafruit_AMG88xx (TwoWire &w, uint8_t addr=AMG88xx_ADDRESS) |
| | Bind the I2C bus and 7-bit sensor address; call begin() before reading.
|
| | ~Adafruit_AMG88xx (void) |
| | Destroy the wrapper without taking ownership of the I2C bus.
|
| bool | begin () |
| | Initialize I2C and configure normal mode, 10 FPS, and disabled interrupts.
|
| void | readPixels (float *buf, uint8_t size=AMG88xx_PIXEL_ARRAY_SIZE) |
| | Read infrared pixel temperatures in degrees Celsius.
|
|
float | readThermistor () |
| | Return the internal thermistor temperature in degrees Celsius.
|
|
void | setMovingAverageMode (bool mode) |
| | Enable (true) or disable (false) the hardware moving average.
|
|
void | enableInterrupt () |
| | Enable the sensor interrupt output.
|
|
void | disableInterrupt () |
| | Disable the sensor interrupt output.
|
|
void | setInterruptMode (uint8_t mode) |
| | Select AMG88xx_DIFFERENCE or AMG88xx_ABSOLUTE_VALUE interrupt mode.
|
|
void | getInterrupt (uint8_t *buf, uint8_t size=8) |
| | Read the per-pixel interrupt bitmap into buf; size is a byte count up to 8.
|
|
void | clearInterrupt () |
| | Clear sensor interrupt flags using the flag-reset command.
|
|
void | setInterruptLevels (float high, float low) |
| | Set high/low temperature thresholds in degrees Celsius; hysteresis is 95% of high.
|
|
void | setInterruptLevels (float high, float low, float hysteresis) |
| | Set high/low thresholds and hysteresis explicitly, all in degrees Celsius.
|
Class that stores state and functions for interacting with AMG88xx IR sensor chips.
- Examples
- feather-m0/AMG88xx/main.cpp, and feather-m0/AMG88xx_IoT.own/main.cpp.
◆ Adafruit_AMG88xx()
Bind the I2C bus and 7-bit sensor address; call begin() before reading.
127:
Wire(w), _i2caddr(addr) {};
◆ ~Adafruit_AMG88xx()
| Adafruit_AMG88xx::~Adafruit_AMG88xx |
( |
void | | ) |
|
|
inline |
Destroy the wrapper without taking ownership of the I2C bus.
◆ begin()
| bool Adafruit_AMG88xx::begin |
( |
| ) |
|
Initialize I2C and configure normal mode, 10 FPS, and disabled interrupts.
- Returns
- Always true in this implementation; transfer failures are not checked.
◆ readPixels()
Read infrared pixel temperatures in degrees Celsius.
- Parameters
-
| buf | Output array of at least size floats. |
| size | Number of pixels, 1 through 64; larger values are unsafe. |
The documentation for this class was generated from the following file: