예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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);
 }