Library for the VL6180 time of flight range finder.
Dependents: VL6180_Hello_World STM32F103C8T6_VL6180 BLE_Sensor_VL6180 BLE_Sensor_VL6180_window
Revision 3:5d61f202b1bd, committed 2015-10-19
- Comitter:
- sburg
- Date:
- Mon Oct 19 21:58:52 2015 +0000
- Parent:
- 2:595673e4c505
- Commit message:
- Fixed address error in read()
Changed in this revision
VL6180.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 595673e4c505 -r 5d61f202b1bd VL6180.cpp --- a/VL6180.cpp Mon Oct 19 16:47:17 2015 +0000 +++ b/VL6180.cpp Mon Oct 19 21:58:52 2015 +0000 @@ -59,7 +59,7 @@ writeI2C(0x18, 0x01); status = readI2C(0x4F); - while((status & 0x2) != 4) { + while((status & 0x7) != 4) { status = readI2C(0x4F); }