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:
- Furqan123
- Date:
- 2019-01-18
- Revision:
- 0:5cd1b0039e4a
- Child:
- 1:fc45a3ca3c80
File content as of revision 0:5cd1b0039e4a:
#include "mbed.h"
DigitalOut myled(LED1);
DigitalOut myled2(LED2);
int main() {
while(1) {
myled = 1; // LED is ON
myled2 = 0; //LED is OFF
wait(0.2); // 200 ms
myled = 0; // LED is OFF
myled = 1; // LED is ON
wait(1.0); // 1 sec
}
}