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