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 by
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 }
Generated on Tue Jul 12 2022 19:08:04 by
1.7.2
