Hi, All
How to get to B4R an array of floats ?
"pixels" array from this sketch below:
How to get to B4R an array of floats ?
"pixels" array from this sketch below:
Arduino sketch:
#include <Wire.h>
#include <Adafruit_AMG88xx.h>
Adafruit_AMG88xx amg;
float pixels[AMG88xx_PIXEL_ARRAY_SIZE];
void setup() {
Serial.begin(9600);
bool status;
// default settings
status = amg.begin();
if (!status) {
Serial.println("Could not find a valid AMG88xx sensor, check wiring!");
while (1);
}
delay(100); // let sensor boot up
}
void loop() {
//read all the pixels
amg.readPixels(pixels);
//delay a second
delay(1000);
}