This library is derived library of DigitalOut. Cumulative counter that detected the Hi edge and I have the operation cumulative time function .
Diff: LogDigitalOut.h
- Revision:
- 1:23b306c0a0b2
- Parent:
- 0:b63c87da380a
--- a/LogDigitalOut.h Thu Jan 29 06:28:17 2015 +0000 +++ b/LogDigitalOut.h Thu Jan 29 14:53:38 2015 +0000 @@ -8,10 +8,12 @@ LogDigitalOut(PinName pin); void CountUp(); // 動作累積回数 void RatiosUp(); + void ResetAccumulate(); + void Write(int volume); int GetCount(); int GetRatios(); int Read(); - void Write(int volume); + private: DigitalOut _pin; int buffer;