![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: sensor/rotary_inc_sp.cpp
- Revision:
- 22:394337a4205a
- Parent:
- 2:e7b09385d197
--- a/sensor/rotary_inc_sp.cpp Fri Sep 30 00:07:30 2022 +0000 +++ b/sensor/rotary_inc_sp.cpp Sat Oct 15 07:52:25 2022 +0000 @@ -11,6 +11,12 @@ init(pin_a,pin_b); } +RotaryInc::RotaryInc(Port port,double circumference,int resolution,int mode) + :mode_(mode),resolution_(resolution),circumference_(circumference){ + measur_ = true; + init(port.pin[0],port.pin[1]); +} + RotaryInc::RotaryInc(){ measur_ = true; };