MAX44009 Ambient Light Sensor with ADC library
Fork of MAX44009 by
Revision 4:1799f106738d, committed 2018-04-27
- Comitter:
- lucian@Lucians-MacBook-Pro.local
- Date:
- Fri Apr 27 18:29:02 2018 +0300
- Parent:
- 3:b3745ae13d09
- Commit message:
- Fix I2C communication
Changed in this revision
MAX44009.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b3745ae13d09 -r 1799f106738d MAX44009.cpp --- a/MAX44009.cpp Mon Feb 19 18:35:44 2018 +0200 +++ b/MAX44009.cpp Fri Apr 27 18:29:02 2018 +0300 @@ -86,7 +86,7 @@ cmd[1] = LUX_LOW_B; _i2c->write(_addr, &cmd[0], 1, true); - _i2c->read(_addr + 1, &buff[0], 1, true); + _i2c->read(_addr + 1, &buff[0], 1); _i2c->write(_addr, &cmd[1], 1, true); _i2c->read(_addr + 1, &buff[1], 1); }