a
Diff: TB6612.h
- Revision:
- 1:051a7ecff13e
- Parent:
- 0:810f315ba3dc
diff -r 810f315ba3dc -r 051a7ecff13e TB6612.h --- a/TB6612.h Tue Oct 23 15:24:30 2012 +0000 +++ b/TB6612.h Mon Nov 12 16:39:11 2012 +0000 @@ -14,9 +14,9 @@ class TB6612 { public: TB6612(PinName pwm, PinName fwd, PinName rev); - void speed(float speed); - void move(float speed , float time); - void operator= ( float value ) + void speed(int speed); + void move(int speed , int time); + void operator= ( int value ) { speed(value); } @@ -25,11 +25,6 @@ PwmOut _pwm; DigitalOut _fwd; DigitalOut _rev; - Timeout timer; - float bspeed; - bool timer_flag; - void timeout(); - }; #endif