Esempio n. 1
0
 public static void SetBrightness(this IReceivesBrightness device, bool value, IControlToken token = null)
 {
     device.SetData(token, Utils.Data(DataElements.Brightness, value ? 1.0 : 0.0));
 }
Esempio n. 2
0
 public static void SetBrightness(this IReceivesBrightness device, double brightness, IControlToken token = null)
 {
     device.SetData(token, Utils.Data(DataElements.Brightness, brightness));
 }