Dependencies: Led RgbLED SDFileSystem mbed
main.cpp
- Committer:
- MAlmazan
- Date:
- 2017-06-22
- Revision:
- 2:a13fa155b6c5
- Parent:
- 0:7373f4ac36fb
File content as of revision 2:a13fa155b6c5:
#include "mbed.h" #include "SDFileSystem.h" #include "Led.h" DigitalIn sw2(SW2); DigitalIn sw3(SW3); //TODO //Funcion para manejar el boton 3 (ciclo de colores) //Funcion principal que haga un ciclo para ve el estado del boton y escribe en la SD bool LED = false; void Boton2() { if (sw2 == 0) { if (LED) { LEDEstado(false); } else { LEDEstado(true); } wait(0.2f); } } void Boton3() { if (sw3 == 0) { } } int main() { }