![](/media/cache/profiles/bd1ce36d68a5c2bea97fe45863673b20.jpg.50x50_q85.jpg)
PRUEBA DE INGRESO ANALOGO EN APP INVENTOR CON FRDMKL25Z
Fork of serialtransmite1 by
/media/uploads/tony63/voltimetro.apk
DebouncedIn.h
- Committer:
- tony63
- Date:
- 2015-04-17
- Revision:
- 2:8a0e46a84596
- Parent:
- 0:4676a90107ca
File content as of revision 2:8a0e46a84596:
#include "mbed.h" class DebouncedIn { public: DebouncedIn(PinName in); int read (void); operator int(); int rising(void); int falling(void); int steady(void); private : // objects DigitalIn _in; Ticker _ticker; // function to take a sample, and update flags void _sample(void); // counters and flags int _samples; int _output; int _output_last; int _rising_flag; int _falling_flag; int _state_counter; };