private void SendCommandForDualModeRegion(Constants.Regions region, byte firstColor, byte secondColor, byte intensity, byte speed) { int modifier; switch (region) { case Constants.Regions.Left: modifier = 0; break; case Constants.Regions.Middle: modifier = 3; break; case Constants.Regions.Right: modifier = 6; break; default: throw new ArgumentOutOfRangeException(nameof(region), region, null); } SendCommand(67, (byte)(Constants.Regions.Left + modifier), firstColor, intensity); SendCommand(67, (byte)(Constants.Regions.Middle + modifier), secondColor, intensity); SendCommand(67, (byte)(Constants.Regions.Right + modifier), speed, speed, speed); }
public RegionSetting(Constants.Regions region, Constants.Intensities intensity, Constants.Colors primaryColor, Constants.Colors secondaryColor) { Region = region; Intensity = intensity; PrimaryColor = primaryColor; SecondaryColor = secondaryColor; }