My blinking LEDs

Dependencies:   mbed

Fork of demo_program by -deleted-

Committer:
wm
Date:
Thu May 16 15:55:58 2013 +0000
Revision:
8:810b0bafbd65
Parent:
7:9b6915e1191c
vars myled, newled, newerled renamed to myled1, myled3, myled4 to match the physical LED numbering

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:ea96942621d5 1 #include "mbed.h"
screamer 0:ea96942621d5 2
wm 8:810b0bafbd65 3 DigitalOut myled1(LED1);
wm 8:810b0bafbd65 4 DigitalOut myled3(LED3);
wm 8:810b0bafbd65 5 DigitalOut myled4(LED4);
screamer 0:ea96942621d5 6
screamer 0:ea96942621d5 7 int main() {
screamer 0:ea96942621d5 8 while(1) {
wm 8:810b0bafbd65 9 myled1 = 1;
wm 8:810b0bafbd65 10 myled3 = 1;
wm 8:810b0bafbd65 11 myled4 = 1;
dan 5:75210a3db173 12 wait(0.5);
wm 8:810b0bafbd65 13 myled1 = 0;
wm 8:810b0bafbd65 14 myled3 = 0;
wm 8:810b0bafbd65 15 myled4 = 0;
dan 5:75210a3db173 16 wait(0.5);
screamer 0:ea96942621d5 17 }
screamer 0:ea96942621d5 18 }