Edwin Cho / Mbed 2 deprecated TSL2591

Dependencies:   mbed

Revision:
3:fecb1929cbef
Parent:
2:dd10c541a3dc
diff -r dd10c541a3dc -r fecb1929cbef TSL2591.h
--- a/TSL2591.h	Mon Mar 14 03:11:03 2016 +0000
+++ b/TSL2591.h	Mon Apr 04 08:49:41 2016 +0000
@@ -79,7 +79,7 @@
 class TSL2591
 {
     public:
-    TSL2591(I2C& tsl2591_i2c, uint8_t tsl2591_addr);
+    TSL2591(I2C& tsl2591_i2c, uint8_t tsl2591_addr=TSL2591_ADDR);
     bool init(void);
     void enable(void);
     void disable(void);
@@ -87,9 +87,10 @@
     void setTime(tsl2591IntegrationTime_t integ);
     void getALS(void);
     void calcLux(void);
-    volatile uint16_t           visible;
+    volatile uint32_t           rawALS;
     volatile uint16_t           ir;
     volatile uint16_t           full;
+    volatile uint16_t           visible;
     volatile uint32_t           lux;
     
     protected:
@@ -98,7 +99,6 @@
     bool                        _init;
     tsl2591Gain_t               _gain;
     tsl2591IntegrationTime_t    _integ;
-    uint32_t                    _rawALS;
 };
 
 #endif
\ No newline at end of file