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.
Dependencies: mbed mbed-rtos 4DGL-uLCD-SE HC_SR04_Ultrasonic_Library
Diff: main.cpp
- Revision:
- 5:3ff2acbd08ab
- Parent:
- 4:7d02b3f3bee6
- Child:
- 6:068146497fe6
--- a/main.cpp Wed Apr 22 04:26:37 2020 +0000 +++ b/main.cpp Wed Apr 22 04:29:28 2020 +0000 @@ -53,9 +53,11 @@ } /* - How you would print TOF to pc serial + How to get distance value status = board->sensor_centre->get_distance(&distance); + + How you would print TOF to pc serial if (status == VL53L0X_ERROR_NONE) { pc.printf("D=%ld mm\r\n", distance); }