C++ Sensor Library
#1
In this thread provides information about library for working with sensors for the C ++ programming language.

SIMPLE TEST FILE FOR MY LITTLE LIBRARY:

#include <iostream>
#include <TSL2561.h>
#include <TSL2561.c>

using namespace std;

int main () {
       float cur_illum, low_bow_illum;

       cur_illum = tsl2561_getdata(TSL2561_TOTAL_LUX);

       cout << "CURRENT TOTAL LIGHTING (LUX): " << cur_illum << endl;
       cout << "CURRENT VISIBLE LIGHTNING (LUX): " << tsl2561_getdata(TSL2561_VISIBLE_LUX) << endl;
       cout << "CURRNET INFRARED LIGHTNING (LUX):" << tsl2561_getdata(TSL2561_INFRARED_LUX) << endl;

return 0;
}


Attached Files Thumbnail(s)
   


Messages In This Thread
C++ Sensor Library - by Artyom - 09-25-2016, 10:55 AM
RE: C++ Sensor Library - by Artyom - 09-27-2016, 12:42 PM
RE: C++ Sensor Library - by Artyom - 10-01-2016, 02:50 AM
RE: C++ Sensor Library - by Artyom - 10-01-2016, 04:07 AM
RE: C++ Sensor Library - by Zoidiano0 - 10-01-2016, 07:54 AM
RE: C++ Sensor Library - by Artyom - 10-01-2016, 08:50 AM
C++ Sensor Library - by Artyom - 10-22-2016, 02:32 AM
RE: C++ Sensor Library - by Artyom - 11-08-2016, 08:05 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)