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:
- 2:397b1b9266a9
- Parent:
- 1:73ff30fa5ee0
- Child:
- 3:8f8caebe76cc
diff -r 73ff30fa5ee0 -r 397b1b9266a9 VCNL4000.cpp --- a/VCNL4000.cpp Tue Jun 07 18:15:46 2016 +0000 +++ b/VCNL4000.cpp Wed Jun 22 18:07:10 2016 +0000 @@ -81,7 +81,7 @@ // --------------------------------------------------- int VCNL4000::getProductId( void ) { - return( ( registerRead( VCNL4000regAddr + ProdIdRevision ) & 0xf0 ) >> 4 ); + return(registerRead(0x81)); } // ---------------------------------------------------