iforce2d Chris
/
04_I2C_MPU6050
YMFC-AL implementation in mbed.
Diff: PPM.h
- Revision:
- 1:411d267f9d32
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PPM.h Fri Oct 04 17:04:41 2019 +0000 @@ -0,0 +1,20 @@ +#ifndef PPM_IN +#define PPM_IN + +class PPM +{ + public: + static const uint8_t NUM_CHANNELS = 6; + uint16_t channels[NUM_CHANNELS]; + + PPM(PinName pin); + + void rise(); + + protected: + InterruptIn ppm; + Timer timer; + uint8_t currentChannel; +}; + +#endif \ No newline at end of file