Control de plaqueta

Dependencies:   Led SDFileSystem mbed

main.cpp

Committer:
MAlmazan
Date:
2017-06-10
Revision:
0:7373f4ac36fb
Child:
2:f3ceb5d7b70c

File content as of revision 0:7373f4ac36fb:

#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() {

    
}