LIBRARY FOR HANDLING THE I2C COMMUNICATION
Diff: motorDriver.cpp
- Revision:
- 0:f890a2a23d44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motorDriver.cpp Thu Feb 09 21:46:39 2017 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "motorDriver.h" + +motorDriver::motorDriver(char slaveAddress){ + this._i2cAddr = slaveAddress; +} + +int motorDriver::actualPosition(){ + return 3; +} + +void motorDriver::requestData(char addr, char requestedData ,char *buff, int size){ + +} + +char motorDriver::addressConverter(char sevenBitAddress){ + return sevenBitAddress << 1; +} +int motorDriver::charArrayToInt(char *array, int size){ + return 5; +} \ No newline at end of file