|
@@ -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);
|