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: VL6180 mbed-STM32F103C8T6 mbed
Fork of VL6180_Hello_World by
Revision 1:b2fce17fa2d6, committed 2017-05-23
- Comitter:
- Zeran
- Date:
- Tue May 23 17:29:14 2017 +0000
- Parent:
- 0:2508f38e90fe
- Commit message:
- stm32f103c8t6 vl6180
Changed in this revision
diff -r 2508f38e90fe -r b2fce17fa2d6 VL6180.lib --- a/VL6180.lib Mon Oct 19 16:47:41 2015 +0000 +++ b/VL6180.lib Tue May 23 17:29:14 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/sburg/code/VL6180/#595673e4c505 +https://developer.mbed.org/users/sburg/code/VL6180/#5d61f202b1bd
diff -r 2508f38e90fe -r b2fce17fa2d6 main.cpp
--- 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
diff -r 2508f38e90fe -r b2fce17fa2d6 mbed-STM32F103C8T6.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-STM32F103C8T6.lib Tue May 23 17:29:14 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#09d8c2eacb4d
