Browse Source

Setup easing

Robert Marshall 1 year ago
parent
commit
3631f6238b
1 changed files with 6 additions and 5 deletions
  1. 6 5
      lighting/src/main.cpp

+ 6 - 5
lighting/src/main.cpp

@@ -10,6 +10,7 @@
 #include "TimerManager.cpp"
 #include "TouchInput.cpp"
 #include "DeltaTouchInput.cpp"
+#include "Easing.cpp"
 #include <Arduino.h>
 
 LedManager *EspNowLightControlServer::_leds = 0; // WTF, C++?
@@ -17,18 +18,18 @@ LedManager *EspNowLightControlServer::_leds = 0; // WTF, C++?
 #define FADE_IN_DURATION 500
 #define FADE_OUT_DURATION 1000
 
-LEDOutput _seatingLedOutput(0, true);
+LEDOutput _seatingLedOutput(0, true, EaseMode::QUINT_IN);
 LED _seatingLeds("seating", &_seatingLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
-LEDOutput _kitchenLedOutput(1, true);
+LEDOutput _kitchenLedOutput(1, true, EaseMode::QUINT_IN);
 LED _kitchenLeds("kitchen", &_kitchenLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
-LEDOutput _bathroomLedOutput(2, true);
+LEDOutput _bathroomLedOutput(2, true, EaseMode::QUINT_IN);
 LED _bathroomLeds("bathroom", &_bathroomLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
 
 LEDOutput _awningLedOutput(3);
-LED _awningLeds("awning", &_awningLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
+LED _awningLeds("awning", &_awningLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION, EaseMode::QUART_IN);
 
 LEDOutput _cabLedOutput(4);
-LED _cabLeds("cab", &_cabLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
+LED _cabLeds("cab", &_cabLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION, EaseMode::QUART_IN);
 
 TimerManager _timers;
 LedManager _leds(&_timers);