Mihail Stoyanov
/
demo_program
My blinking LEDs
Revision 2:34d3bf46c928, committed 2012-06-07
- Comitter:
- screamer
- Date:
- Thu Jun 07 12:16:11 2012 +0000
- Parent:
- 0:ea96942621d5
- Child:
- 3:f16745a202c2
- Commit message:
- added LED3
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 07 12:13:56 2012 +0000 +++ b/main.cpp Thu Jun 07 12:16:11 2012 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" DigitalOut myled(LED1); +DigitalOut newled(LED3); int main() { while(1) { myled = 1; + newled = 1; wait(0.2); myled = 0; + myled = 0; wait(0.2); } }