public void GetCurrentConfig(ref List <Color> colours, out ushort stepDuration, out bool breathingEnabled, out bool invertedRChannel, out bool invertedGChannel, out bool invertedBChannel, out FlashingSpeed flashingSpeed) { foreach (byte index in Range(1, 8)) { Color c = _lighting.GetColour(index).Value; c.R *= 0x11; // Colour is exposed as 12-bit depth, but colour picker expects 24-bit depth c.G *= 0x11; c.B *= 0x11; colours.Add(c); } stepDuration = _lighting.GetStepDuration(); breathingEnabled = _lighting.IsBreathingModeEnabled(); invertedRChannel = _lighting.IsRChannelInverted(); invertedGChannel = _lighting.IsGChannelInverted(); invertedBChannel = _lighting.IsBChannelInverted(); flashingSpeed = (FlashingSpeed)_lighting.GetFlashingSpeed(); }
public byte GetFlashingSpeed() { return((byte)_lighting.GetFlashingSpeed()); }