IOP WIZnet
/
ledtest_wiznetacademy
test
Revision 0:4e9df6d4c5ff, committed 2017-05-11
- Comitter:
- IOP
- Date:
- Thu May 11 02:32:14 2017 +0000
- Commit message:
- led ?????
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 4e9df6d4c5ff main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 11 02:32:14 2017 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +// PC_8 = RED +// PC_9 = GREEN +// PC_5 = BLUE + +DigitalOut RED(PC_8); +DigitalOut GREEN(PC_9); +DigitalOut BLUE(PC_5); + +int main(void) +{ + while(1) + { + RED = 1; + GREEN = 1; + BLUE =1; + wait(1); + RED = 0; + GREEN = 0; + BLUE = 0; + wait(1); + } +} \ No newline at end of file
diff -r 000000000000 -r 4e9df6d4c5ff mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu May 11 02:32:14 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/4eea097334d6 \ No newline at end of file