reeeeeeeeeeeeeee
Dependencies: MotionSensor mbed
Fork of Assignment2_ver3 by
main.cpp@7:6dc42e1a2a81, 2016-11-29 (annotated)
- Committer:
- weebgrammers
- Date:
- Tue Nov 29 20:21:45 2016 +0000
- Revision:
- 7:6dc42e1a2a81
- Parent:
- 4:f0a11480f39f
- Child:
- 9:751e39d24c39
s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:fb6bbc10ffa0 | 1 | #include "mbed.h" |
Judorunner | 2:e2ae43e8acab | 2 | #include "PaceHeart.h" |
weebgrammers | 7:6dc42e1a2a81 | 3 | #include "Hardware.h" |
oopakhooo | 3:641eefd1110b | 4 | //DigitalOut output_pin_A(LED1); |
simon | 0:fb6bbc10ffa0 | 5 | |
oopakhooo | 4:f0a11480f39f | 6 | PaceHeart* Pacer = new PaceHeart; |
oopakhooo | 4:f0a11480f39f | 7 | DigitalOut led(LED1); |
weebgrammers | 7:6dc42e1a2a81 | 8 | Serial pc(USBTX, USBRX); |
weebgrammers | 7:6dc42e1a2a81 | 9 | void setup() { |
weebgrammers | 7:6dc42e1a2a81 | 10 | pc.baud(57600); |
oopakhooo | 4:f0a11480f39f | 11 | } |
oopakhooo | 4:f0a11480f39f | 12 | |
Judorunner | 2:e2ae43e8acab | 13 | |
simon | 0:fb6bbc10ffa0 | 14 | int main() { |
weebgrammers | 7:6dc42e1a2a81 | 15 | setup(); |
weebgrammers | 7:6dc42e1a2a81 | 16 | while(1){ |
weebgrammers | 7:6dc42e1a2a81 | 17 | Output_V(1.0,0.4); |
weebgrammers | 7:6dc42e1a2a81 | 18 | //Check_serial(pc,*Pacer); |
weebgrammers | 7:6dc42e1a2a81 | 19 | } |
weebgrammers | 7:6dc42e1a2a81 | 20 | //Pacer-> pace_A(); |
simon | 0:fb6bbc10ffa0 | 21 | } |