Used to read incoming PWM signals from RC channels
Diff: PulseIn.h
- Revision:
- 3:c98b23d53e42
- Parent:
- 2:4abac72addb7
--- a/PulseIn.h Tue Jan 08 15:01:22 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -#ifndef PULSEIN_H -#define PULSEIN_H - -#include "mbed.h" - -class PulseIn -{ - public: - PulseIn(PinName p); - int read(void); - - private: - InterruptIn _k; - void rise(void); - void fall(void); - Timer t; - uint16_t _duration; -}; - -#endif -