Rotary encoder library. Uses interrupts for reading rotation,
Fork of RPG by
Diff: RPG.h
- Revision:
- 1:0b389c2c21b5
- Parent:
- 0:4a7e5f6a59a4
- Child:
- 2:94d27805abda
--- a/RPG.h Fri Oct 12 14:01:48 2012 +0000 +++ b/RPG.h Fri Oct 12 14:04:17 2012 +0000 @@ -29,18 +29,20 @@ #include "mbed.h" +/** + * Constructor(Channel A input pin, Channel B input pin, Pushbutton input pin) + */ class RPG{ public: RPG(PinName pA, PinName pB, PinName pPB); - //Dispose + //Destructor ~RPG(); //Get Direction int dir(); //Check Push Button bool pb(); - //Digital In (pulled up) private: