first folk

Dependencies:   mbed

Fork of demo_program by -deleted-

Committer:
dan
Date:
Tue May 21 14:09:44 2013 +0000
Revision:
9:be3f59c825d6
Parent:
8:cb9b22d13f60
Added LED2 support

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:ea96942621d5 1 #include "mbed.h"
screamer 0:ea96942621d5 2
dan 6:9f428344c4ee 3 DigitalOut myled(LED1);
dan 9:be3f59c825d6 4 DigitalOut newled(LED2);
screamer 2:34d3bf46c928 5 DigitalOut newled(LED3);
screamer 4:9681c944004e 6 DigitalOut newerled(LED4);
screamer 0:ea96942621d5 7
screamer 0:ea96942621d5 8 int main() {
screamer 0:ea96942621d5 9 while(1) {
screamer 0:ea96942621d5 10 myled = 1;
dan 9:be3f59c825d6 11 myled2 = 1;
screamer 2:34d3bf46c928 12 newled = 1;
screamer 4:9681c944004e 13 newerled = 1;
dan 5:75210a3db173 14 wait(0.5);
screamer 0:ea96942621d5 15 myled = 0;
dan 9:be3f59c825d6 16 myled2 = 0;
screamer 4:9681c944004e 17 newled = 0;
screamer 4:9681c944004e 18 newerled = 0;
dan 5:75210a3db173 19 wait(0.5);
screamer 0:ea96942621d5 20 }
screamer 0:ea96942621d5 21 }