public void SetStepWidth(StepWidth width, SettingsDuration duration = SettingsDuration.UntilReset) { lock (this) { SendCommand(new byte[] { (byte)RNCommands.SetStepWidth, (byte)MotorSelection.All, (byte)width, (byte)duration }); } }
public void SetCurrent(CurrentSelection current, MotorSelection motors, uint mA, SettingsDuration duration = SettingsDuration.UntilReset) { lock (this) { SendCommand(new byte[] { (byte)current, (byte)motors, (byte)(mA & 0x00FF), (byte)((mA & 0xFF00) >> 8), (byte)duration }); } }