TSL2561
Dependents: Hexi_TSL2561 HexiHeart_Main
Fork of TSL2561 by
Diff: TSL2561.cpp
- Revision:
- 3:f36a139bee4b
- Parent:
- 2:17591031447b
--- 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;