private void RulesEngineSetLights(object sender, SetLightsEventArgs args) { if (SirenOfShameDevice.IsConnected) { SirenOfShameDevice.PlayLightPattern(args.LedPattern, args.TimeSpan); } }
public async Task PlayLightPattern(LedPattern ledPattern, TimeSpan?duration) { await _device.PlayLightPattern(ledPattern, duration); }