virtua pinnnn / VCNL4000

Fork of VCNL4000 by Benigno Gobbo

Revision:
1:73ff30fa5ee0
Parent:
0:1720792a6e28
Child:
2:397b1b9266a9
--- a/VCNL4000.cpp	Tue Feb 14 10:55:19 2012 +0000
+++ b/VCNL4000.cpp	Tue Jun 07 18:15:46 2016 +0000
@@ -57,7 +57,7 @@
 
     startProximityMeasurement();
     while( !proximityDataReady() ) { 
-      wait(0.1);
+      wait(0.01);//was 0.1
     }
     _data = registerRead( VCNL4000regAddr + ProximityMsb ) << 8;
     int status = _status;
@@ -70,7 +70,7 @@
 int VCNL4000::getAmbientLight( void ) {
     startAmbientLightMeasurement();
     while( !ambientLightDataReady() ) { 
-      wait(0.1);
+      wait(0.01); //was 0.1
     }
     _data = registerRead( VCNL4000regAddr + AmbientLightMsb ) << 8;
     int status = _status;