:)
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:0edf9dcc41ca
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 18 18:24:05 2014 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "Led_Colores.h" + +DigitalIn sw2(SW2); +DigitalIn sw3(SW3); + +int main() +{ + while (true) { + if(!sw2&&sw3) { + Colores(RED); + } else { + Colores(BLACK); + } + if(!sw3&&sw2) { + Colores(GREEN); + } else { + Colores(BLACK); + } + if(!sw2 && !sw3) { + Colores(BLUE); + } else { + Colores(BLACK); + } +} +} \ No newline at end of file