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@18:bb632df62f51, 2015-07-07 (annotated)
- Committer:
- aidanPJG
- Date:
- Tue Jul 07 11:00:08 2015 +0000
- Revision:
- 18:bb632df62f51
- Parent:
- 17:d9fb4a3780c7
- Child:
- 21:5256c5435b33
Updating Calculate class. Trying to sense the time
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| aidanPJG | 18:bb632df62f51 | 1 | //#include "mbed.h" |
| aidanPJG | 18:bb632df62f51 | 2 | // |
| aidanPJG | 18:bb632df62f51 | 3 | //int radius; |
| aidanPJG | 18:bb632df62f51 | 4 | //float number_sensors; |
| aidanPJG | 18:bb632df62f51 | 5 | // |
| aidanPJG | 18:bb632df62f51 | 6 | //float Distance(){ |
| aidanPJG | 18:bb632df62f51 | 7 | // { |
| aidanPJG | 18:bb632df62f51 | 8 | // |
| aidanPJG | 18:bb632df62f51 | 9 | // pc.prinf('Ready to read\n'); |
| aidanPJG | 18:bb632df62f51 | 10 | // while (1){ |
| aidanPJG | 18:bb632df62f51 | 11 | // if (pc.readable()){ |
| aidanPJG | 18:bb632df62f51 | 12 | // radius = pc.read(); |
| aidanPJG | 18:bb632df62f51 | 13 | // number_sensors()= pc.read(); |
| aidanPJG | 18:bb632df62f51 | 14 | // break; |
| aidanPJG | 18:bb632df62f51 | 15 | // } |
| aidanPJG | 18:bb632df62f51 | 16 | // } |
| aidanPJG | 18:bb632df62f51 | 17 | // } |