| aMD23_SetSpeed2 | Index |
Definition:
| aMD23_SetSpeed2( | 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, this register operates the speed and direction of motor 2. When in Mode 2 or 3, this register becomes a turn register.
Example:
aMD23_SetSpeed2(MD23_ADDR,50);
This would set the speed 2 register to 50 (0x32).
Related: