Taiki Maruyama / Mbed 2 deprecated MainBoard2018_Auto_Master_A

Dependencies:   mbed

Fork of MainBoard2018_Auto_Master_A by Akihiro Nakabayashi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Rotaryencoder.cpp Source File

Rotaryencoder.cpp

00001 #include "Rotaryencoder.h"
00002 #include "mbed.h"
00003 
00004 #include "../../System/Process/InterruptProcess.h"
00005 
00006 InterruptIn BoardRtInt[] = {
00007     InterruptIn(RT11_PIN),
00008     InterruptIn(RT12_PIN),
00009     
00010     InterruptIn(RT21_PIN),
00011     InterruptIn(RT22_PIN),
00012 };
00013 
00014 
00015 namespace ROTARYENCODER {
00016     void Int::Initialize() {
00017         BoardRtInt[0].mode(PullUp);
00018         BoardRtInt[1].mode(PullUp);
00019         BoardRtInt[2].mode(PullUp);
00020         BoardRtInt[3].mode(PullUp);
00021 
00022         BoardRtInt[0].fall(int2);
00023         BoardRtInt[1].fall(int3);
00024         BoardRtInt[2].fall(int4);
00025         BoardRtInt[3].fall(int5);
00026     }
00027 }