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
Diff: main.cpp
- Revision:
- 6:ca9ae5ce232d
- Parent:
- 5:94aa173f182c
- Child:
- 7:c56b212b084e
--- a/main.cpp Thu Nov 10 17:57:01 2016 +0000 +++ b/main.cpp Thu Nov 10 18:00:28 2016 +0000 @@ -1,4 +1,10 @@ -//*** main code +#include "mbed.h" +Timer timer1; // define timer object +Timer timer2; // define timer object +DigitalOut output1(p5); // digital output +DigitalOut output2(p6); // digital output +void task1(void); // task function prototype +void task2(void); // task function prototype int main() { timer1.start(); // start timer1 counting