Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
Adafruit_AMG88xx Class Reference

Class that stores state and functions for interacting with AMG88xx IR sensor chips. More...

#include <Adafruit_AMG88xx.hpp>

Public Member Functions

 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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ Adafruit_AMG88xx()

Adafruit_AMG88xx::Adafruit_AMG88xx ( TwoWire & w,
uint8_t addr = AMG88xx_ADDRESS )
inline

Bind the I2C bus and 7-bit sensor address; call begin() before reading.

127: Wire(w), _i2caddr(addr) {};
TwoWire & Wire

◆ ~Adafruit_AMG88xx()

Adafruit_AMG88xx::~Adafruit_AMG88xx ( void )
inline

Destroy the wrapper without taking ownership of the I2C bus.

131{};

Member Function Documentation

◆ 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()

void Adafruit_AMG88xx::readPixels ( float * buf,
uint8_t size = AMG88xx_PIXEL_ARRAY_SIZE )

Read infrared pixel temperatures in degrees Celsius.

Parameters
bufOutput array of at least size floats.
sizeNumber of pixels, 1 through 64; larger values are unsafe.

The documentation for this class was generated from the following file: