Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public byte GetFlashingSpeed()
 {
     return((byte)_lighting.GetFlashingSpeed());
 }