コード例 #1
0
 private void RulesEngineSetLights(object sender, SetLightsEventArgs args)
 {
     if (SirenOfShameDevice.IsConnected)
     {
         SirenOfShameDevice.PlayLightPattern(args.LedPattern, args.TimeSpan);
     }
 }
コード例 #2
0
 public async Task PlayLightPattern(LedPattern ledPattern, TimeSpan?duration)
 {
     await _device.PlayLightPattern(ledPattern, duration);
 }