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.
Dependencies: mbed
Diff: rotary_inc.hpp
- Revision:
- 3:28c77df7c0b6
- Parent:
- 0:ca84ed7518f5
--- a/rotary_inc.hpp Fri Jan 03 02:37:48 2020 +0000
+++ b/rotary_inc.hpp Mon Jan 06 11:06:26 2020 +0000
@@ -14,15 +14,15 @@
class RotaryInc{
public:
- RotaryInc(PinName userA, PinName userB,double circumference,int resolution,int mode = 0);//速度計測有効
- RotaryInc(PinName userA, PinName userB,int mode = 0);//速度計測無効
+ 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();
long long get();
double getSpeed();
void reset();
int diff();
private:
- InterruptIn *A_,*B_;
+ InterruptIn *pin_a_,*pin_b_;
Timer timer_;
long long pulse_;
long long last_[20];