Library for the MAX44000 Ambient Light Sensor / Proximity Detector
Dependents: LED_Demo LED_Demo2 LED_Demo
Fork of BMP180 by
MAX44000 Device Driver
Diff: MAX44000.cpp
- Revision:
- 2:91f97c274e89
- Parent:
- 1:1a770989adcb
- Child:
- 3:1d508b290354
--- a/MAX44000.cpp Wed May 04 15:47:32 2016 +0000 +++ b/MAX44000.cpp Wed May 04 18:03:38 2016 +0000 @@ -135,7 +135,7 @@ if (data & 0x40) { // if the overflow bit is set return -1; } - + alsData = (data << 8); data = REG_ALS_DATA_LOW; if (i2c_->write(I2C_ADDR, &data, 1, true) != 0) {