Example software for a Cyclic Executive

Dependencies:   MCP23017 SDFileSystem WattBob_TextLCD mbed

main.cpp

Committer:
sk398
Date:
2016-02-15
Revision:
1:221d677fe0d3
Parent:
0:5989ac10c4d3
Child:
2:22ebabd78084

File content as of revision 1:221d677fe0d3:

#include "mbed.h"
#include "Tasks.h"


DigitalOut myled(LED1);

Task1 task1(p5); // Square wave Measurement

Task3 task3(p6); // Watchdog Pulse


int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}