test
Dependencies: mbed TrapezoidControl QEI
Diff: Input/Rotaryencoder/Rotaryencoder.cpp
- Revision:
- 5:3ae504b88679
- Parent:
- 1:b1219d8ca117
--- a/Input/Rotaryencoder/Rotaryencoder.cpp Sat Sep 22 10:58:25 2018 +0000 +++ b/Input/Rotaryencoder/Rotaryencoder.cpp Mon Oct 01 09:07:27 2018 +0000 @@ -11,6 +11,7 @@ InterruptIn(RT22_PIN), }; + namespace ROTARYENCODER { void Int::Initialize() { BoardRtInt[0].mode(PullUp); @@ -18,9 +19,9 @@ BoardRtInt[2].mode(PullUp); BoardRtInt[3].mode(PullUp); - BoardRtInt[0].fall(int0); - BoardRtInt[1].fall(int1); - BoardRtInt[2].fall(int2); - BoardRtInt[3].fall(int3); + BoardRtInt[0].fall(int2); + BoardRtInt[1].fall(int3); + BoardRtInt[2].fall(int4); + BoardRtInt[3].fall(int5); } } \ No newline at end of file