thanks to Zoltan Hudak publish the way to use stm32f103c8t6 on mbed. now you can use it with vl6180 tof sensor
Dependencies: VL6180 mbed-STM32F103C8T6 mbed
Fork of VL6180_Hello_World by
Diff: main.cpp
- Revision:
- 1:b2fce17fa2d6
- Parent:
- 0:2508f38e90fe
--- a/main.cpp Mon Oct 19 16:47:41 2015 +0000 +++ b/main.cpp Tue May 23 17:29:14 2017 +0000 @@ -1,14 +1,18 @@ +#include "stm32f103c8t6.h" #include "VL6180.h" #include "mbed.h" -VL6180 rf(p9, p10); //I2C sda and scl -Serial pc(USBTX, USBRX); //USB serial +VL6180 rf(PB_7, PB_6); //I2C sda and scl + int main() { + confSysClock(); + Serial pc(PA_2, PA_3); float reading; + while(1) { reading = rf; pc.printf("Read %4.1f cm\n", reading); - wait(0.5); + //wait(0.5); } } \ No newline at end of file