/// <summary> /// Enable the motor associated with the specified axis. /// </summary> /// <param name="axis">The axis to enable.</param> public void EnableMotor(axisMask axis) { byte enable = ReadRegister((byte)Registers.ENABLE); enable |= (byte)((byte)axis * 2); WriteRegister((byte)Registers.ENABLE, 1); }
/// <summary> /// Disable the motor associated with the specified axis. /// </summary> /// <param name="axis">The axis to diable.</param> public void DisableMotor(axisMask axis) { //WRONG WriteRegister((byte)Registers.ACTIVATE, 0); }