Stop the Blinking LED

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut myled(LED1);
00004 
00005 int main() {
00006     myled = 1;
00007     wait(0.5);    
00008     myled = 0;
00009         
00010     while(1) {
00011         wait(1.0);
00012     }
00013 }