Initial Fork
Diff: TB6612.cpp
- Revision:
- 3:cb336a5cf19e
- Parent:
- 2:73cbc6028f7a
- Child:
- 4:53e02c276f23
diff -r 73cbc6028f7a -r cb336a5cf19e TB6612.cpp --- a/TB6612.cpp Thu May 08 19:11:04 2014 +0000 +++ b/TB6612.cpp Fri May 09 14:49:33 2014 +0000 @@ -22,9 +22,9 @@ // Speed Control // arg // int speed -100 -- 0 -- 100 -void TB6612::speed(int speed) { +void TB6612::speed(int speed_) { - speed *= scale; + float speed = scale*(float)speed_; if( speed > 0 ) {