Used to read incoming PWM signals from RC channels
PulseIn.h
- Committer:
- KarimAzzouz
- Date:
- 2013-01-08
- Revision:
- 2:4abac72addb7
- Parent:
- 1:eaf70ff4df07
File content as of revision 2:4abac72addb7:
#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