Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: TSL2591.h
- Revision:
- 3:fecb1929cbef
- Parent:
- 2:dd10c541a3dc
--- 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