Initial release.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_53L1A1_mbed X_NUCLEO_53L1A1_mbed VL53L1X_Ranging_With_Standalone_Satellite_MbedOS X_NUCLEO_53L1A1
Revision 9:1d4f91c8df4b, committed 2021-05-12
- Comitter:
- johnAlexander
- Date:
- Wed May 12 10:04:06 2021 +0000
- Parent:
- 8:744e8b1b9837
- Commit message:
- Add MbedOS v6.x support.
Changed in this revision
VL53L1X_Class.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/VL53L1X_Class.h Wed Jul 24 12:28:33 2019 +0000 +++ b/VL53L1X_Class.h Wed May 12 10:04:06 2021 +0000 @@ -213,7 +213,12 @@ *_expgpio0 = 1; } } - wait_ms(10); +// wait_ms(10); +#if (MBED_VERSION > 60300) + thread_sleep_for(10); +#else + wait_ms(10); // NEEDS A DELAY BETWEEN SENSORS +#endif } /** @@ -231,7 +236,12 @@ *_expgpio0 = 0; } } - wait_ms(10); +// wait_ms(10); +#if (MBED_VERSION > 60300) + thread_sleep_for(10); +#else + wait_ms(10); // NEEDS A DELAY BETWEEN SENSORS +#endif } int is_present() @@ -264,7 +274,12 @@ while(!status && !sensorState) { status = vl53l1x_boot_state(&sensorState); - wait_ms(2); +// wait_ms(2); +#if (MBED_VERSION > 60300) + thread_sleep_for(2); +#else + wait_ms(2); // NEEDS A DELAY BETWEEN SENSORS +#endif } return status;