public LightManager(DMX dmx) { PreviousMediationState = MeditationState.IDLE; CurrentMediationState = MeditationState.IDLE; PreviousColor = Color.Blue; CurrentColor = Color.Aqua; CurrentSecondaryColor = Color.LightSlateGray; CurrentTertiaryColor = Color.HotPink; CurrentHeartRate = 50; LightDMX = dmx; BuildGradientTransition(); // 25 FPS timer to update LEDs heartRatePulseTimer = new Timer(PulseTimer_Tick, null, Timeout.Infinite, Timeout.Infinite); }
public HeartRateObservable(DMX dmx) { this.dmx = dmx; observers = new List <IObserver <int> >(); }