This is a simple C++ library for "GridEye" IR sensor to read thermal imaging on Raspberry Pi.
-
Because this library is based on wiringPi Project, so you need to install it first.
-
Ensure I2C Interface is enabled on RPi.
-
The connections between GridEye and RPi is as follows:
GridEye RPi VDD 3.3V GND GND SCL SCL SDA SDA INT AD_SELECT GND
$ git clone https://github.com/addison822/GridEye
$ cd GridEye/
- For dynamic library
$ sudo make install
- For static library
$ sudo make install-static
- test.cpp
#include <grideye.h>
float frame[8][8];
int main(){
inttialGridEye();
readFrame(frame);
return 0;
}
- Compile
$ g++ test.cpp -lwiringPi -lgrideye -o test
$ cd GridEye/
$ make uninstall