aa

Dependencies:   mbed TrapezoidControl QEI

Revision:
4:ba9df71868df
Parent:
1:b1219d8ca117
--- a/Input/Rotaryencoder/Rotaryencoder.cpp	Sat Sep 22 10:58:25 2018 +0000
+++ b/Input/Rotaryencoder/Rotaryencoder.cpp	Mon Oct 01 13:47:19 2018 +0000
@@ -3,7 +3,7 @@
 
 #include "../../System/Process/InterruptProcess.h"
 
-InterruptIn BoardRtInt[] = {
+InterruptIn BoardRt[] = {
     InterruptIn(RT11_PIN),
     InterruptIn(RT12_PIN),
     
@@ -12,15 +12,15 @@
 };
 
 namespace ROTARYENCODER {
-    void Int::Initialize() {
-        BoardRtInt[0].mode(PullUp);
-        BoardRtInt[1].mode(PullUp);
-        BoardRtInt[2].mode(PullUp);
-        BoardRtInt[3].mode(PullUp);
+    void Rot::Initialize() {
+        BoardRt[0].mode(PullUp);
+        BoardRt[1].mode(PullUp);
+        BoardRt[2].mode(PullUp);
+        BoardRt[3].mode(PullUp);
 
-        BoardRtInt[0].fall(int0);
-        BoardRtInt[1].fall(int1);
-        BoardRtInt[2].fall(int2);
-        BoardRtInt[3].fall(int3);
+        BoardRt[0].fall(int2);
+        BoardRt[1].fall(int3);
+        BoardRt[2].fall(int4);
+        BoardRt[3].fall(int5);
     }
 }
\ No newline at end of file