Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TrapezoidControl QEI Pulse LM61CIZ
Diff: Input/Rotaryencoder/Rotaryencoder.cpp
- Revision:
- 5:3ae504b88679
- Parent:
- 1:b1219d8ca117
diff -r e10d8736fd22 -r 3ae504b88679 Input/Rotaryencoder/Rotaryencoder.cpp
--- 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