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.
Fork of VL53L1X_Pololu by
main.cpp
00001 #include "VL53L1X.h" 00002 00003 DigitalOut led1 (LED1); 00004 DigitalOut led2 (LED2); 00005 VL53L1X L (D14, D15); 00006 00007 int main() { 00008 led1 = !led1; 00009 L.init(); 00010 00011 while (1) { 00012 L.startContinuous(10); 00013 printf("Distance (mm): %d\n", L.read()); 00014 L.stopContinuous(); 00015 wait_ms(.500); 00016 } 00017 }
Generated on Sat Jul 16 2022 16:51:30 by
1.7.2
