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-STM32F103C8T6 mbed
Fork of Wii_IRCam_Test by
main.cpp
00001 #include "stm32f103c8t6.h" 00002 #include "mbed.h" 00003 #include "LidarLitev2.h" 00004 00005 00006 00007 LidarLitev2 Lidar(PB_9, PB_8); 00008 //I2C i2c(PB_9, PB_8); // sda, scl 00009 00010 00011 int main() { 00012 confSysClock(); 00013 00014 Serial pc(PA_2, PA_3); 00015 pc.baud(115200); 00016 pc.printf("config\n"); 00017 Lidar.configure(); 00018 pc.printf("config\n"); 00019 //dt.start(); 00020 while(1){ 00021 pc.printf("dis = %d cm \n", Lidar.distance()); 00022 //dt.reset(); 00023 } 00024 00025 }
Generated on Thu Jul 14 2022 15:29:34 by
1.7.2
