Carlos Reyes
/
led3_rgb
preende focos
Revision 0:2f08c2dda52a, committed 2013-10-02
- Comitter:
- Carlos_IMT
- Date:
- Wed Oct 02 16:36:04 2013 +0000
- Commit message:
- led3;
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 2f08c2dda52a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 02 16:36:04 2013 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +PwmOut rled(LED_RED); +PwmOut gled(LED_GREEN); +PwmOut bled(LED_BLUE); + +int main() +{ + +while(1) +{ +rled = 1; +gled = 0.5; +bled = 0; +wait(1); + +rled = 0.5; +gled = 1; +bled = 0; +wait(1); +} + +} \ No newline at end of file
diff -r 000000000000 -r 2f08c2dda52a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 02 16:36:04 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file