A sample program getting measurements from a VL53L1CB ToF sensors which are connected thru a shield to the STM32F401. Copes with one sensor. Polling mode. VL53L1 is operated in multizone mode. MBed V6.
Dependencies: X_NUCLEO_53L1A2
Diff: main.cpp
- Revision:
- 3:d1a3d15a06ff
- Parent:
- 2:ef5e40bad526
- Child:
- 4:177d711cc20f
--- 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);