Used to read incoming PWM signals from RC channels
Diff: PulseIn.h
- Revision:
- 2:4abac72addb7
- Parent:
- 1:eaf70ff4df07
--- a/PulseIn.h Sun Dec 23 23:49:18 2012 +0000 +++ b/PulseIn.h Tue Jan 08 15:01:22 2013 +0000 @@ -8,14 +8,13 @@ public: PulseIn(PinName p); int read(void); - int getAngle(void); private: InterruptIn _k; void rise(void); void fall(void); Timer t; - uint16_t _duration,_prev; + uint16_t _duration; }; #endif