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
main.cpp@25:bab86a12e9ad, 2015-07-07 (annotated)
- Committer:
 - aidanPJG
 - Date:
 - Tue Jul 07 14:12:51 2015 +0000
 - Revision:
 - 25:bab86a12e9ad
 - Parent:
 - 24:92600b1d15b1
 - Child:
 - 27:f3ca0269515f
 - Child:
 - 29:3ef0b7773ff6
 
Calculate able to tell when the beam is broken and print it
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| ADAMSTRUTT | 17:d9fb4a3780c7 | 1 | #include "mbed.h" | 
| ADAMSTRUTT | 17:d9fb4a3780c7 | 2 | #include "Calculate.h" | 
| ADAMSTRUTT | 17:d9fb4a3780c7 | 3 | #include "Distance.h" | 
| ADAMSTRUTT | 20:0b2279011691 | 4 | //#include "Counter.h | 
| aidanPJG | 25:bab86a12e9ad | 5 | Serial pc(USBTX, USBRX); // tx, rx | 
| ADAMSTRUTT | 17:d9fb4a3780c7 | 6 | |
| ADAMSTRUTT | 20:0b2279011691 | 7 | int main(void) | 
| aidanPJG | 7:d6f78ba7c5f7 | 8 | { | 
| aidanPJG | 24:92600b1d15b1 | 9 | |
| ADAMSTRUTT | 20:0b2279011691 | 10 | calculate(); | 
| aidanPJG | 24:92600b1d15b1 | 11 | |
| ADAMSTRUTT | 17:d9fb4a3780c7 | 12 | } |