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.
main.cpp
- Committer:
- Stoni_90
- Date:
- 2014-04-07
- Revision:
- 0:1168529b2d03
- Child:
- 1:2ff187087b49
File content as of revision 0:1168529b2d03:
#include "mbed.h"
DigitalOut myled(LED1);
DigitalOut myled2(LED2);
int main() {
while(1) {
myled = 1; // LED is ON
myled2 = 0; // LED2 is OFF
wait(0.2); // 200 ms
myled = 0; // LED is OFF
myled2 = 1; // LED2 is ON
wait(1.0); // 1 sec
}
}