
enum con bus
Dependencies: mbed
Revision 0:c1de30a088eb, committed 2014-09-18
- Comitter:
- ArlesValdovinos
- Date:
- Thu Sep 18 18:18:36 2014 +0000
- Commit message:
- enum con bus
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 Sep 18 18:18:36 2014 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +BusOut leds(LED_RED, LED_GREEN, LED_BLUE); +enum colores {blanco, cyan, magenta, azul, ambar, verde, rojo, ninguno}; + +int main() +{ + while (true) + { + leds=blanco; + wait(1.5f); + leds=verde; + wait(1.5f); + leds=rojo; + wait(1.5f); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Sep 18 18:18:36 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file