예제 #1
0
 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);
 }
예제 #2
0
 public HeartRateObservable(DMX dmx)
 {
     this.dmx  = dmx;
     observers = new List <IObserver <int> >();
 }