Debounce_Library

Dependents:   EJ3_Cafetera EJ1

antirrebote.h

Committer:
Tom_87
Date:
2018-05-03
Revision:
0:16d62113f1d5
Child:
1:8db2c2a203d9
Child:
2:d1e2599de47c

File content as of revision 0:16d62113f1d5:

#ifndef _ANTIRREBOTE_H_
#define _ANTIRREBOTE_H_
#include "mbed.h"

enum{NO_APRETADO,ENCENDIDO=0, APRETADO, APAGADO = 1};
typedef int pinEstado_t;


class AntReb{
    
    public:

        AntReb();
        ~AntReb();

        pinEstado_t antiRebote();
        
        void setPin(DigitalIn pin);

    private:

        
        char e_PULS;
        char P_PULS;
    
};
    
#endif