A sample program to control one VL53L1 ToF sensor in multizone mode using polling to find out if a measurement is available. Mbed V6.3 but will run any MBed version by dropping replacing this one. Maint6 release.
Dependencies: X_NUCLEO_53L1A2
Diff: main.cpp
- Revision:
- 3:d1a3d15a06ff
- Parent:
- 2:ef5e40bad526
- Child:
- 4:177d711cc20f
- Child:
- 15:ce041cbc8727
--- a/main.cpp Sun Nov 08 14:05:14 2020 +0000 +++ b/main.cpp Sun Nov 08 15:06:04 2020 +0000 @@ -25,7 +25,7 @@ static XNucleo53L1A1 *board=NULL; -#if (MBED_VERSION > 60100) +#if (MBED_VERSION > 60300) UnbufferedSerial pc(SERIAL_TX, SERIAL_RX); extern "C" void wait_ms(int ms); #else @@ -181,7 +181,7 @@ } -#if (MBED_VERSION > 60100) +#if (MBED_VERSION > 60300) extern "C" void wait_ms(int ms) { thread_sleep_for(ms);