![](/media/cache/profiles/P1030212_resized.JPG.50x50_q85.jpg)
明石高専ロボ研 mbedライブラリ
Dependents: MDD_L432KC USB2RS485 pathtracking odometry ... more
Diff: rotary_inc.cpp
- Revision:
- 14:bdd394483434
- Parent:
- 3:28c77df7c0b6
--- a/rotary_inc.cpp Sat Feb 27 04:50:22 2021 +0000 +++ b/rotary_inc.cpp Wed Oct 13 09:12:48 2021 +0000 @@ -18,7 +18,7 @@ pin_a_->rise(callback(this,&RotaryInc::riseA)); if(mode_ == 2){ - pin_a_->fall(callback(this,&RotaryInc::fallA)); + pin_b_->rise(callback(this,&RotaryInc::riseB)); }else if(mode_ == 4){ pin_a_->fall(callback(this,&RotaryInc::fallA)); pin_b_->rise(callback(this,&RotaryInc::riseB));