Debounce_Library

Dependents:   EJ3_Cafetera EJ1

antirrebote.h

Committer:
Tom_87
Date:
2018-06-12
Revision:
3:df73a4aa4ff8
Parent:
0:16d62113f1d5

File content as of revision 3:df73a4aa4ff8:

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

typedef int pinEstado_t;


class AntReb{
    
    public:

        AntReb();
        ~AntReb();

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

    private:
        char state, Pulsador, deb_time, hab;
        pinEstado_t out;
    
};
    
#endif