Stop the Blinking LED

Dependencies:   mbed

Committer:
wim
Date:
Thu Feb 07 19:15:35 2013 +0000
Revision:
0:088623ea241a
GoodbyeWorld to stop the blinking LED

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wim 0:088623ea241a 1 #include "mbed.h"
wim 0:088623ea241a 2
wim 0:088623ea241a 3 DigitalOut myled(LED1);
wim 0:088623ea241a 4
wim 0:088623ea241a 5 int main() {
wim 0:088623ea241a 6 myled = 1;
wim 0:088623ea241a 7 wait(0.5);
wim 0:088623ea241a 8 myled = 0;
wim 0:088623ea241a 9
wim 0:088623ea241a 10 while(1) {
wim 0:088623ea241a 11 wait(1.0);
wim 0:088623ea241a 12 }
wim 0:088623ea241a 13 }