This is a simple project on mbed, developed by NPNLab team The led is turned on for 1s and off for 1s then, repeated.
Revision 0:50ed51be7a14, committed 2017-06-23
- Comitter:
- KISIDO85
- Date:
- Fri Jun 23 06:09:11 2017 +0000
- Commit message:
- This is a simple project on ST32 Nucleo Board.; The led is turned on and off every 1s.
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 50ed51be7a14 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 23 06:09:11 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; // LED is ON + wait(1); // 2 s + myled = 0; // LED is OFF + wait(1); // 2 s + } +} \ No newline at end of file
diff -r 000000000000 -r 50ed51be7a14 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jun 23 06:09:11 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/64910690c574 \ No newline at end of file