My blinking LEDs

Dependencies:   mbed

Fork of demo_program by -deleted-

Committer:
screamer
Date:
Thu Jun 07 12:19:19 2012 +0000
Revision:
3:f16745a202c2
Parent:
2:34d3bf46c928
Parent:
1:42b1b06ed716
Child:
4:9681c944004e
merged revision 1 with revision 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:ea96942621d5 1 #include "mbed.h"
screamer 0:ea96942621d5 2
screamer 1:42b1b06ed716 3 DigitalOut myled(LED2);
screamer 2:34d3bf46c928 4 DigitalOut newled(LED3);
screamer 0:ea96942621d5 5
screamer 0:ea96942621d5 6 int main() {
screamer 0:ea96942621d5 7 while(1) {
screamer 0:ea96942621d5 8 myled = 1;
screamer 2:34d3bf46c928 9 newled = 1;
screamer 0:ea96942621d5 10 wait(0.2);
screamer 0:ea96942621d5 11 myled = 0;
screamer 2:34d3bf46c928 12 myled = 0;
screamer 0:ea96942621d5 13 wait(0.2);
screamer 0:ea96942621d5 14 }
screamer 0:ea96942621d5 15 }