thanks to Zoltan Hudak publish the way to use stm32f103c8t6 on mbed. now you can use it with Lidar Lite
Dependencies: LidarLitev2 mbed-STM32F103C8T6 mbed
Fork of Wii_IRCam_Test by
main.cpp
- Committer:
- Zeran
- Date:
- 2017-05-23
- Revision:
- 2:d69208cb9224
- Parent:
- 1:150525e9c21f
File content as of revision 2:d69208cb9224:
#include "stm32f103c8t6.h"
#include "mbed.h"
#include "LidarLitev2.h"
LidarLitev2 Lidar(PB_9, PB_8);
//I2C i2c(PB_9, PB_8); // sda, scl
int main() {
confSysClock();
Serial pc(PA_2, PA_3);
pc.baud(115200);
pc.printf("config\n");
Lidar.configure();
pc.printf("config\n");
//dt.start();
while(1){
pc.printf("dis = %d cm \n", Lidar.distance());
//dt.reset();
}
}
