Complete library for whole scientific pre-final

Dependencies:   BOX_1

Revision:
4:f693e434d21c
Parent:
3:7c5d4da549ce
--- a/ENVIROMENTAL/ENVIROMENTAL.h	Mon Jun 10 15:28:07 2019 +0000
+++ b/ENVIROMENTAL/ENVIROMENTAL.h	Tue Jun 11 12:57:01 2019 +0000
@@ -1,11 +1,10 @@
 #ifndef ENVIROMENTAL_H
 #define ENVIROMENTAL_H
-
+#include "TSL2561.h"
 #include "mbed.h"
 #include "BME280.h"     
 #include "SI7021.h"
 #include "VEML6070.h"
-//#include "TSL2561.h"    //Lacks library
 
 
 class ENVIROMENTAL
@@ -16,9 +15,11 @@
   uint32_t get_humidity(); //return humidity from SI7021
   int32_t get_pressure();    //return pressure in Pa from MBP280
   float get_CO();  //return CO from  mq-7
-  int get_lux();   //return lux from TSL2561
+  int get_lumen();   //return visible lumen from TSL2561
+  int get_infrared();   //return infrared lumen from TSL2561
   void calibrate_mq();   //run only once in clean air
   int get_uv();    //return uv intensity from VEML6070
+  
 
 virtual ~ENVIROMENTAL();
 
@@ -30,7 +31,7 @@
 PinName  _pinSDA;
 PinName  _mq_pin;
 float  _tmp;
-//TSL2561 lux;
+TSL2561 lux;
 BME280 bmp;
 SI7021 climate;
 VEML6070 uv;