Programa para cambiar el color de un led RGB.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:7773c5daa37e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 11 18:09:23 2014 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "Led_Colores.h" + +int c=0; + +int main() +{ + while (true) { + Colores(BLACK); + for(c=0; c<8; c++) { + Colores(c); + wait(1.0f); + } + } +} +