
enum con bus
Dependencies: mbed
main.cpp
- Committer:
- ArlesValdovinos
- Date:
- 2014-09-18
- Revision:
- 0:c1de30a088eb
File content as of revision 0:c1de30a088eb:
#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); } }