daad

Dependencies:   mbed TrapezoidControl QEI

Committer:
7ka884
Date:
Mon Oct 01 13:47:19 2018 +0000
Revision:
4:ba9df71868df
Parent:
1:b1219d8ca117
huhuhuh

Who changed what in which revision?

UserRevisionLine numberNew contents of line
7ka884 1:b1219d8ca117 1 #include "Rotaryencoder.h"
7ka884 1:b1219d8ca117 2 #include "mbed.h"
7ka884 1:b1219d8ca117 3
7ka884 1:b1219d8ca117 4 #include "../../System/Process/InterruptProcess.h"
7ka884 1:b1219d8ca117 5
7ka884 4:ba9df71868df 6 InterruptIn BoardRt[] = {
7ka884 1:b1219d8ca117 7 InterruptIn(RT11_PIN),
7ka884 1:b1219d8ca117 8 InterruptIn(RT12_PIN),
7ka884 1:b1219d8ca117 9
7ka884 1:b1219d8ca117 10 InterruptIn(RT21_PIN),
7ka884 1:b1219d8ca117 11 InterruptIn(RT22_PIN),
7ka884 1:b1219d8ca117 12 };
7ka884 1:b1219d8ca117 13
7ka884 1:b1219d8ca117 14 namespace ROTARYENCODER {
7ka884 4:ba9df71868df 15 void Rot::Initialize() {
7ka884 4:ba9df71868df 16 BoardRt[0].mode(PullUp);
7ka884 4:ba9df71868df 17 BoardRt[1].mode(PullUp);
7ka884 4:ba9df71868df 18 BoardRt[2].mode(PullUp);
7ka884 4:ba9df71868df 19 BoardRt[3].mode(PullUp);
7ka884 1:b1219d8ca117 20
7ka884 4:ba9df71868df 21 BoardRt[0].fall(int2);
7ka884 4:ba9df71868df 22 BoardRt[1].fall(int3);
7ka884 4:ba9df71868df 23 BoardRt[2].fall(int4);
7ka884 4:ba9df71868df 24 BoardRt[3].fall(int5);
7ka884 1:b1219d8ca117 25 }
7ka884 1:b1219d8ca117 26 }