Jose Rios
/
Nucleo_Blink
Revision 0:1b577fea32e8, committed 2014-09-08
- Comitter:
- jose_23991
- Date:
- Mon Sep 08 17:31:54 2014 +0000
- Commit message:
- Version 1.0
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 1b577fea32e8 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Sep 08 17:31:54 2014 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +int main() +{ + DigitalOut led(LED1, 0); // Create the LED object and setup OFF + + while(1) + { + led = 1; // Turn LED ON + wait(1); // Wait 1s + led = 0; // Turn LED OFF + wait(1); // Wait 1s + } +}
diff -r 000000000000 -r 1b577fea32e8 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Sep 08 17:31:54 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file