![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: sensor/rotary_inc_sp.hpp
- Revision:
- 22:394337a4205a
- Parent:
- 2:e7b09385d197
--- a/sensor/rotary_inc_sp.hpp Fri Sep 30 00:07:30 2022 +0000 +++ b/sensor/rotary_inc_sp.hpp Sat Oct 15 07:52:25 2022 +0000 @@ -1,6 +1,7 @@ #ifndef ROTARY_INC_H #define ROTARY_INC_H #include "mbed.h" +#include "portSet.hpp" #ifndef M_PI #define M_PI 3.14159265358979 #endif @@ -16,6 +17,7 @@ public: RotaryInc(PinName user_a, PinName user_b,double circumference,int resolution,int mode = 0);//速度計測有効 RotaryInc(PinName user_a, PinName user_b,int mode = 0);//速度計測無効 + RotaryInc(Port port,double circumference,int resolution,int mode = 0); RotaryInc(); ~RotaryInc(); long long get();