![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
blink for our custom board
Revision 0:ffc0788cdf41, committed 2017-08-31
- Comitter:
- chalikias
- Date:
- Thu Aug 31 15:20:21 2017 +0000
- Commit message:
- dur parameter
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Aug 31 15:20:21 2017 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" + +DigitalOut LD19(P1_18); +DigitalOut LD20(P1_20); +DigitalOut LD21(P1_21); +DigitalOut LD22(P1_23); + + + +int main(void) { + int dur = 1; + LD19 = 0; + LD20 = 0; + LD21 = 0; + LD22 = 0; + + while (1) { + LD19 = 1; + wait(dur); + LD19 = 0; + + LD20 = 1; + wait(dur); + LD20 = 0; + + LD21 = 1; + wait(dur); + LD21 = 0; + + LD22 = 1; + wait(dur); + LD22 = 0; + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Aug 31 15:20:21 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20 \ No newline at end of file