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: mbed
Diff: Distance.cpp
- Revision:
- 15:a468af6ba5a4
- Parent:
- 9:eada5d248a5d
- Child:
- 16:745001c41fee
diff -r 2badf40258df -r a468af6ba5a4 Distance.cpp
--- a/Distance.cpp Fri Jul 03 14:05:08 2015 +0000
+++ b/Distance.cpp Tue Jul 07 08:25:57 2015 +0000
@@ -1,1 +1,18 @@
-#include 'mbed.h'
\ No newline at end of file
+#include 'mbed.h'
+
+int radius;
+float number_sensors;
+
+float Distance(){
+ {
+
+ pc.prinf('Ready to read\n');
+ while (1){
+ if (pc.readable()){
+ radius = pc.read();
+ number_sensors()= pc.read();
+ break;
+ }
+ }
+ }
+
\ No newline at end of file