First import from throwbot
Fork of TB6612FNG2 by
Diff: TB6612.h
- Revision:
- 4:53e02c276f23
- Parent:
- 2:73cbc6028f7a
diff -r cb336a5cf19e -r 53e02c276f23 TB6612.h --- a/TB6612.h Fri May 09 14:49:33 2014 +0000 +++ b/TB6612.h Sun Oct 05 12:20:35 2014 +0000 @@ -14,7 +14,8 @@ class TB6612 { public: - int scale; + float scale; + int _speed; //save control input TB6612(PinName pwm, PinName fwd, PinName rev); @@ -23,6 +24,7 @@ { speed(value); } + int getSpeed(); protected: PwmOut _pwm;