IOP WIZnet
/
ledtest_wiznetacademy
test
Diff: main.cpp
- Revision:
- 0:4e9df6d4c5ff
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