Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of VCNL4000 by
Diff: VCNL4000.cpp
- Revision:
- 1:73ff30fa5ee0
- Parent:
- 0:1720792a6e28
- Child:
- 2:397b1b9266a9
diff -r 1720792a6e28 -r 73ff30fa5ee0 VCNL4000.cpp --- 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;