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.
Fork of TSL2561_I2C by
Revision 7:3a0c5545d4f7, committed 2016-08-11
- Comitter:
- AfdhalAtiffTan
- Date:
- Thu Aug 11 13:48:58 2016 +0000
- Parent:
- 6:17fef2caa563
- Commit message:
- Modified the I2C address for Grove Digital Light Sensor.
Changed in this revision
| TSL2561_I2C.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TSL2561_I2C.h Thu Apr 24 10:48:29 2014 +0000 +++ b/TSL2561_I2C.h Thu Aug 11 13:48:58 2016 +0000 @@ -3,8 +3,9 @@ #include "mbed.h" //Defines -#define TSL_SLAVE_ADDRESS 0x39 +#define TSL_SLAVE_ADDRESS 0x29 +/* #define TSL_CONTROL 0x00 #define TSL_TIMING 0x01 #define TSL_THRESHLOWLOW 0x02 @@ -13,6 +14,16 @@ #define TSL_ID 0x0A #define TSL_DATA0LOW 0x0C #define TSL_DATA1LOW 0x0E +*/ + +#define TSL_CONTROL 0x80 +#define TSL_TIMING 0x81 +#define TSL_THRESHLOWLOW 0x06 +#define TSL_THRESHHIGHLOW 0x04 +#define TSL_INTERRUPT 0x86 +#define TSL_ID 0x0A +#define TSL_DATA0LOW 0x8C +#define TSL_DATA1LOW 0x8E /** TSL2561_I2C class. * Abstraction for TAOS TSL2561 Light-To-Digital Converter.
