Diff: I2CMotor.cpp
- Revision:
- 1:46cf8d086b38
- Parent:
- 0:89910534fad4
- Child:
- 2:5b17e7dffb3d
--- a/I2CMotor.cpp Thu Jul 02 00:57:59 2015 +0000 +++ b/I2CMotor.cpp Fri Aug 21 04:51:31 2015 +0000 @@ -1,13 +1,15 @@ #include "I2CMotor.h" +#include "I2CDevice.h" #include "mbed.h" -I2CMotor::I2CMotor( I2C* i2c, char address ) : I2CDevice( i2c, address ){ +I2CMotor::I2CMotor( char address ) : I2CDevice( address ){ mActionType = BRAKE; mDuty = 0; char dutyLimit[ 2 ]; ( ( I2CDevice* )this )->read( ( char* )dutyLimit, ( size_t )2 ); + //read( ( char* )dutyLimit, ( size_t )2 ); mMinDuty = dutyLimit[ 0 ]; mMinDuty /= 255.0f;