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
Distance.cpp
- Committer:
- ADAMSTRUTT
- Date:
- 2015-07-07
- Revision:
- 16:745001c41fee
- Parent:
- 14:dee4cef00b32
- Parent:
- 15:a468af6ba5a4
- Child:
- 17:d9fb4a3780c7
File content as of revision 16:745001c41fee:
#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;
}
}
}