示例#1
0
 public override async Task Set(ButtonIdentifier button, bool enabled, TimeSpan?duration = null)
 {
     var lightableButton = this.lookup[button];
     await lightableButton.SetLight(enabled, duration);
 }
示例#2
0
 public override ILightableButton this[ButtonIdentifier buttonIdentifier]
 {
     get { return(this.LedButtonPinPins.FirstOrDefault(lbpp => lbpp.ButtonIdentifier.Equals(buttonIdentifier))); }
 }