Exemple #1
0
 private void CreateCyclesCollection()
 {
     cycles = new DoCycle[] {
         new DoCycle(Marigold),
         new DoCycle(Rainbow),
     };
 }
        private void CreateCyclesCollection()
        {
            cycles = new DoCycle[] {

            new DoCycle(Marigold),
            new DoCycle(Rainbow),
            };
        }
 /// <summary>
 /// Executes the neopixel pixel definition and then checks if there are
 /// any external actions commands to be executed
 /// </summary>
 /// <param name="doCycle"></param>
 public void ExecuteCycle(DoCycle doCycle)
 {
     try {
         doCycle();
         Thread.Sleep(50);
     }
     catch { ActuatorErrorCount++; }
 }
 /// <summary>
 /// Executes the neopixel pixel definition and then checks if there are
 /// any external actions commands to be executed
 /// </summary>
 /// <param name="doCycle"></param>
 public void ExecuteCycle(DoCycle doCycle)
 {
     try {
         doCycle();
         Util.Delay(50);
     }
     catch { ActuatorErrorCount++; }
 }
 private void CreateCyclesCollection()
 {
     cycles = new DoCycle[] {
         new DoCycle(HappyBirthday),
         new DoCycle(AlphaNumeric),
         new DoCycle(Hearts),
         new DoCycle(FollowMe),
     };
 }
 /// <summary>
 /// Executes the neopixel pixel definition and then checks if there are 
 /// any external actions commands to be executed
 /// </summary>
 /// <param name="doCycle"></param>
 public void ExecuteCycle(DoCycle doCycle)
 {
     try
     {
         doCycle();
         Util.Delay(50);
     }
     catch { ActuatorErrorCount++; }
 }
 private void CreateCyclesCollection()
 {
     cycles = new DoCycle[] {
         new DoCycle(IPAddress),
         new DoCycle(Welcome),
         new DoCycle(AlphaNumeric),
         new DoCycle(Hearts),
         new DoCycle(FollowMe),
     };
 }
        public void ExecuteCycle(DoCycle doCycle)
        {
            try {
                doCycle();

                var a = GetNextAction();
                while (a != null) {
                    DoAction(a);
                    a = GetNextAction();
                }
            }
            catch { ActuatorErrorCount++; }
        }
Exemple #9
0
        public void ExecuteCycle(DoCycle doCycle)
        {
            try {
                doCycle();

                var a = GetNextAction();
                while (a != null)
                {
                    DoAction(a);
                    a = GetNextAction();
                }
            }
            catch { ActuatorErrorCount++; }
        }
 private void ExecuteCycle(DoCycle cycle)
 {
     cycle();
 }
        private void CreateCyclesCollection()
        {
            cycles = new DoCycle[] {

            new DoCycle(IPAddress),
            new DoCycle(Welcome),
            new DoCycle(AlphaNumeric),
            new DoCycle(Hearts),
            new DoCycle(FollowMe),
            };
        }
 private void ExecuteCycle(DoCycle cycle)
 {
     cycle();
 }