Rauno U
/
Miisu
Six crescent shaped legs
Diff: Encoder.cpp
- Revision:
- 12:8de7f5d56fe4
- Parent:
- 8:c3af2a1c206c
- Child:
- 14:4143ddddef1b
diff -r a0976d3b33c5 -r 8de7f5d56fe4 Encoder.cpp --- a/Encoder.cpp Tue Apr 12 13:05:12 2016 +0000 +++ b/Encoder.cpp Tue Apr 12 13:12:49 2016 +0000 @@ -1,6 +1,9 @@ #include "Encoder.hpp" -Encoder::Encoder(EncoderData nData) : data(nData), encA(data.encAPin), encB(data.encBPin), intA(data.encAPin), intB(data.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);