Debounce_Library
Diff: antirrebote.h
- Revision:
- 3:df73a4aa4ff8
- Parent:
- 0:16d62113f1d5
--- a/antirrebote.h Thu May 03 23:32:45 2018 +0000 +++ b/antirrebote.h Tue Jun 12 17:11:31 2018 +0000 @@ -2,7 +2,6 @@ #define _ANTIRREBOTE_H_ #include "mbed.h" -enum{NO_APRETADO,ENCENDIDO=0, APRETADO, APAGADO = 1}; typedef int pinEstado_t; @@ -14,14 +13,12 @@ ~AntReb(); pinEstado_t antiRebote(); - void setPin(DigitalIn pin); + void DebTime(); private: - - - char e_PULS; - char P_PULS; + char state, Pulsador, deb_time, hab; + pinEstado_t out; };