han jisan
/
Nucleo_blink_led
led test
Revision 0:cc00340e998c, committed 2016-05-04
- Comitter:
- nexseed
- Date:
- Wed May 04 00:21:14 2016 +0000
- Commit message:
- add led2
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 cc00340e998c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 04 00:21:14 2016 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); + +int main() { + while(1) { + myled1 = 1; // LED is ON + myled2 = 0; + wait(0.2); // 200 ms + myled1 = 0; + myled2 = 1; // LED is ON + myled2 = 0; + wait(0.2); // 200 ms + } +}
diff -r 000000000000 -r cc00340e998c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 04 00:21:14 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb \ No newline at end of file