TSL2561
Dependents: Hexi_TSL2561 HexiHeart_Main
Fork of TSL2561 by
Revision 3:f36a139bee4b, committed 2018-02-20
- Comitter:
- i_am_kitsune
- Date:
- Tue Feb 20 05:36:14 2018 +0000
- Parent:
- 2:17591031447b
- Commit message:
- Hexiwear TSL2561
Changed in this revision
| TSL2561.cpp | Show annotated file Show diff for this revision Revisions of this file |
| TSL2561.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TSL2561.cpp Wed Aug 23 09:27:52 2017 +0000
+++ b/TSL2561.cpp Tue Feb 20 05:36:14 2018 +0000
@@ -150,7 +150,7 @@
uint8_t TSL2561::who_am_i()
{
read_ID();
- if ((id_number >> 4) == I_AM_TSL2561) {
+ if ((id_number >> 8) == I_AM_TSL2561) {
return 1;
} else {
return 0;
--- a/TSL2561.h Wed Aug 23 09:27:52 2017 +0000
+++ b/TSL2561.h Tue Feb 20 05:36:14 2018 +0000
@@ -155,7 +155,7 @@
uint32_t ch0;
uint32_t ch1;
int8_t gain;
- uint8_t id_number;
+ uint16_t id_number;
double integ_time;
};
