Debounce_Library

Dependents:   EJ3_Cafetera EJ1

antirrebote.h

Committer:
Tom_87
Date:
2018-05-23
Revision:
1:8db2c2a203d9
Parent:
0:16d62113f1d5

File content as of revision 1:8db2c2a203d9:

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

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


class AntReb{
    
    public:

        AntReb();
        ~AntReb();

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

    private:

        
        char e_PULS;
        char P_PULS;
    
};
    
#endif