the fish that looks like a jet
Dependencies: ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo
PwmReader.h
- Committer:
- sandwich
- Date:
- 2014-01-28
- Revision:
- 5:090ef6275773
- Child:
- 6:a4d6f3e4bf28
File content as of revision 5:090ef6275773:
#pragma once #include "mbed.h" class PwmReader { public: PwmReader(); PwmReader(PinName pwmInPort); ~PwmReader(); float getDuty(); //0 to 1 protected: void pwmRise(); //0 to 1 void pwmFall(); //-1 to 1 InterruptIn* di; int lastRise; int period; float duty; Timer t; };