Rauno U
/
Miisu
Six crescent shaped legs
Diff: Encoder.cpp
- Revision:
- 8:c3af2a1c206c
- Parent:
- 2:cf0147952fb9
- Child:
- 12:8de7f5d56fe4
--- a/Encoder.cpp Tue Mar 29 16:04:03 2016 +0000 +++ b/Encoder.cpp Tue Apr 12 12:45:43 2016 +0000 @@ -1,6 +1,6 @@ #include "Encoder.hpp" -Encoder::Encoder(PinName encAPin, PinName encBPin) : encA(encAPin), encB(encBPin), intA(encAPin), intB(encBPin) +Encoder::Encoder(EncoderData nData) : data(nData), encA(data.encAPin), encB(data.encBPin), intA(data.encAPin), intB(data.encBPin) { intA.rise(this, &Encoder::changeA); intA.fall(this, &Encoder::changeA);