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), }; }
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++; } }
private void ExecuteCycle(DoCycle cycle) { cycle(); }