Exemple
Dependencies: mbed-dev
Revision 0:a765970bfa24, committed 2016-04-28
- Comitter:
- appli1mcd
- Date:
- Thu Apr 28 07:49:53 2016 +0000
- Commit message:
- Initial version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-dev.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r a765970bfa24 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 28 07:49:53 2016 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + + myled = 1; // LED is ON + wait(0.2); // 200 ms + myled = 0; // LED is OFF + wait(1.0); // 1 sec + + printf("Blink\n"); + + /* + myled = !myled; + wait_ms(500); + + //printf("\033[6A"); + */ + } +}
diff -r 000000000000 -r a765970bfa24 mbed-dev.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-dev.lib Thu Apr 28 07:49:53 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-dev/#24bb08393888