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.
Fork of MainBoard2018_Auto_Master_A_neww by
Diff: Input/Rotaryencoder/Rotaryencoder.cpp
- Revision:
- 4:ba9df71868df
- Parent:
- 1:b1219d8ca117
diff -r e10d8736fd22 -r ba9df71868df 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 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
