![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
main.cpp@14:dee4cef00b32, 2015-07-07 (annotated)
- Committer:
- aidanPJG
- Date:
- Tue Jul 07 08:23:23 2015 +0000
- Revision:
- 14:dee4cef00b32
- Parent:
- 8:b8a798d32630
- Child:
- 17:d9fb4a3780c7
for adam;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ADAMSTRUTT | 8:b8a798d32630 | 1 | #include "mbed.h"//is it working |
aidanPJG | 4:e61cd14ec4f0 | 2 | #include <time.h> |
aidanPJG | 14:dee4cef00b32 | 3 | #include <Calculate.h> |
aidanPJG | 4:e61cd14ec4f0 | 4 | #include <string> |
aidanPJG | 4:e61cd14ec4f0 | 5 | #include <iostream> |
aidanPJG | 0:7f5f4575bc6f | 6 | |
aidanPJG | 4:e61cd14ec4f0 | 7 | Serial pc(USBTX, USBRX); // tx, rx //defines the communication between MBed and pc |
aidanPJG | 7:d6f78ba7c5f7 | 8 | DigitalIn sensor1(p8); //input from diode. Digital 1 is beam unbroken? |
aidanPJG | 7:d6f78ba7c5f7 | 9 | DigitalIn sensor2(p9); |
aidanPJG | 7:d6f78ba7c5f7 | 10 | DigitalIn sensor3(p10); |
aidanPJG | 7:d6f78ba7c5f7 | 11 | DigitalIn sensor4(p11); |
aidanPJG | 7:d6f78ba7c5f7 | 12 | DigitalOut led(LED1); |
aidanPJG | 7:d6f78ba7c5f7 | 13 | //testing purposes |
aidanPJG | 7:d6f78ba7c5f7 | 14 | int main() |
aidanPJG | 7:d6f78ba7c5f7 | 15 | { |
aidanPJG | 4:e61cd14ec4f0 | 16 | |
aidanPJG | 14:dee4cef00b32 | 17 | calculate(); |
aidanPJG | 7:d6f78ba7c5f7 | 18 | } |