syouichi imamori
/
MulticopterQuadX
Quad X Type Multicopter
PulseWidthCounter/PulseWidthCounter.h
- Committer:
- komaida424
- Date:
- 2013-11-15
- Revision:
- 2:59ac9df97701
- Child:
- 8:1db19b529b22
File content as of revision 2:59ac9df97701:
#ifndef PULSEWIDTHCOUNTER_H #define PULSEWIDTHCOUNTER_H #define POSITIVE true #define NEGATIVE false #include "mbed.h" class PulseWidthCounter { private: Timer _time; void start(); void stop(); InterruptIn interrupt; public: // Timer time; PulseWidthCounter(PinName,bool positive=true); int count; }; #endif