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.
Revision 7:798b42aae185, committed 2019-08-22
- Comitter:
- ink0513
- Date:
- Thu Aug 22 08:04:58 2019 +0000
- Parent:
- 6:621552ff1de9
- Commit message:
- tof; OS2_Operation
Changed in this revision
VL53L1X.cpp | Show annotated file Show diff for this revision Revisions of this file |
VL53L1X.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/VL53L1X.cpp Fri Jul 27 19:02:07 2018 +0000 +++ b/VL53L1X.cpp Thu Aug 22 08:04:58 2019 +0000 @@ -42,11 +42,11 @@ //Polls the bit 0 of the FIRMWARE__SYSTEM_STATUS register to see if the firmware is ready int counter = 0; int Firmware = readRegister16(VL53L1_FIRMWARE__SYSTEM_STATUS); - printf("Firmware = %x\r\n", Firmware); + //printf("Firmware = %x\r\n", Firmware); while ((Firmware & 0x01) == 0) { Firmware = readRegister16(VL53L1_FIRMWARE__SYSTEM_STATUS); - printf("Firmware = %x\r\n", Firmware); + //printf("Firmware = %x\r\n", Firmware); if (counter++ == 100) return (false); //Sensor timed out wait(.1); }
--- a/VL53L1X.h Fri Jul 27 19:02:07 2018 +0000 +++ b/VL53L1X.h Thu Aug 22 08:04:58 2019 +0000 @@ -1,3 +1,4 @@ + #ifndef VL53L1X_H #define VL53L1X_H