| aMD23_SetSpeed1 | Index |
Definition:
| aMD23_SetSpeed1( | unsigned char controllerAddr, char value); |
Parameters:
| controllerAddr | - | The I2C bus address of the MD23. Default is 176 (aka 0xB0). |
| value | - | The desired speed to set the register to. |
Description:
This routine sets the motor speed register value. The outcome of this action is dictated by the operational mode that the MD23 is currently set to. When operating in Mode 0 and 1, the higher the value written the more power is applied to the motor. When in Mode 2 or 3, both motors are affected.
Example:
aMD23_SetSpeed1(MD23_ADDR,50);
This would set the speed 1 register to 50 (0x32).
Related: