Esempio n. 1
0
        public override void Start()
        {
            // Set color
            testButton.ActiveChanged += (sender, e) =>
            {
                if (e.NewState)
                {
                    this.log.Information("Button press!");
                }
            };

            lorTimeline.Start();
        }
Esempio n. 2
0
 public override void Start()
 {
     // Set color
     testButton.ActiveChanged += (sender, e) =>
     {
         if (e.NewState)
         {
             this.log.Information("Button press!");
             //candyLight.RunEffect(new Effect2.Pulse(0.0, 1.0), S(0.5));
             //System.Threading.Thread.Sleep(S(1));
             //candyLight.StopEffect();
             //candyLight.TurnOff();
             lorTimeline.Start();
         }
     };
 }