This is a simple C++ library for "CoolEye" 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 SPI Interface is enabled on RPi.
$ git clone https://github.com/addison822/CoolEye
$ cd CoolEye/
- For dynamic library
$ sudo make install
- For static library
$ sudo make install-static
- test.cpp
#include <cooleye.h>
double frame[32][32];
int main(){
//The default SPI channel is 0,
//you can also indicate channel 1
//by using inttialCoolEye(1);
initialCoolEye();
readFrame(frame);
return 0;
}
- Compile
$ g++ test.cpp -lwiringPi -lcooleye -o test
$ cd CoolEye/
$ make uninstall