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:
- Hinz
- Date:
- 2017-09-22
- Revision:
- 0:b6ae7abdff7e
- Child:
- 1:c5711c7e5b46
File content as of revision 0:b6ae7abdff7e:
#include "mbed.h"
DigitalOut myled2(D2);
DigitalOut myled3(D3);
int main() {
    while(1) {
        myled2 = 1; // LED is ON
        myled3 = 0; // LED is ON
        wait(0.2); // 200 ms
        myled2 = 0; // LED is OFF
        myled3 = 1; // LED is ON
        wait(1.0); // 1 sec
    }
}