![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
See graph
Dependencies: MCP23017 SDFileSystem WattBob_TextLCD mbed
Fork of Embedded_Software_Assignment_2 by
main.cpp@1:221d677fe0d3, 2016-02-15 (annotated)
- Committer:
- sk398
- Date:
- Mon Feb 15 22:17:47 2016 +0000
- Revision:
- 1:221d677fe0d3
- Parent:
- 0:5989ac10c4d3
- Child:
- 2:22ebabd78084
Converted to a single header file and .cpp file with all the associated tasks contained.; ; This will be adapted throughout developing the tasks independently, using OO principles.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sk398 | 0:5989ac10c4d3 | 1 | #include "mbed.h" |
sk398 | 1:221d677fe0d3 | 2 | #include "Tasks.h" |
sk398 | 0:5989ac10c4d3 | 3 | |
sk398 | 0:5989ac10c4d3 | 4 | |
sk398 | 0:5989ac10c4d3 | 5 | DigitalOut myled(LED1); |
sk398 | 0:5989ac10c4d3 | 6 | |
sk398 | 0:5989ac10c4d3 | 7 | Task1 task1(p5); // Square wave Measurement |
sk398 | 0:5989ac10c4d3 | 8 | |
sk398 | 1:221d677fe0d3 | 9 | Task3 task3(p6); // Watchdog Pulse |
sk398 | 0:5989ac10c4d3 | 10 | |
sk398 | 0:5989ac10c4d3 | 11 | |
sk398 | 0:5989ac10c4d3 | 12 | int main() { |
sk398 | 0:5989ac10c4d3 | 13 | while(1) { |
sk398 | 0:5989ac10c4d3 | 14 | myled = 1; |
sk398 | 0:5989ac10c4d3 | 15 | wait(0.2); |
sk398 | 0:5989ac10c4d3 | 16 | myled = 0; |
sk398 | 0:5989ac10c4d3 | 17 | wait(0.2); |
sk398 | 0:5989ac10c4d3 | 18 | } |
sk398 | 0:5989ac10c4d3 | 19 | } |