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: LidarLitev2 mbed
main.cpp
00001 #include "LidarLitev2.h" 00002 00003 00004 LidarLitev2 Lidar(p28, p27); 00005 Serial pc(USBTX,USBRX); 00006 00007 00008 Timer dt; 00009 int main() 00010 { 00011 00012 pc.baud(115200); 00013 Lidar.configure(); 00014 dt.start(); 00015 while(1){ 00016 pc.printf("distance = %d cm frequency = %.2f Hz\n", Lidar.distance(), 1/dt.read()); 00017 dt.reset(); 00018 } 00019 }
Generated on Thu Jul 14 2022 22:42:18 by
1.7.2
LIDAR-Lite v2