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
main.cpp
- Committer:
- dwijaybane
- Date:
- 2015-10-07
- Revision:
- 1:5f90620e922b
- Parent:
- 0:b59c9d039037
File content as of revision 1:5f90620e922b:
#include "mbed.h" // Basic Library required for onchip peripherals
/* Create Objects */
DigitalOut myled(LED1); // Create a Digital Out object for output
// named myled referring to LED1
/* Main Program */
int main() {
while(1) {
myled = 1; // Led On
wait(0.5); // 500 ms delay
myled = 0; // Led Off
wait(0.5); // 500 ms delay
}
}