Exemplo n.º 1
0
 public bool Equals(LedColor other)
 {
     if (R == other.R && G == other.G && B == other.B)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public override bool SetKeyboardColor(LedColor color)
 {
     return(LogiLedSetLighting(color.Rperc, color.Gperc, color.Bperc));
 }
Exemplo n.º 3
0
 public override bool SetKeyColor(LedKey key, LedColor color)
 {
     return(LogiLedSetLightingForKeyWithHidCode((int)key, color.Rperc, color.Gperc, color.Bperc));
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="color">The RGB color</param>
 /// <param name="duration">The duration in milliseconds</param>
 /// <param name="interval">The interval in milliseconds</param>
 public override bool Flash(LedColor color, int duration, int interval)
 {
     return(LogiLedFlashLighting(color.Rperc, color.Gperc, color.Bperc, duration, interval));
 }
Exemplo n.º 5
0
 public virtual bool SetKeyboardColor(LedColor color)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="color">The RGB color</param>
 /// <param name="duration">The duration in milliseconds</param>
 /// <param name="interval">The interval in milliseconds</param>
 public virtual bool Flash(LedColor color, int duration, int interval)
 {
     throw new NotImplementedException();
 }