Reduce fade out duration

This commit is contained in:
Robert Marshall 2021-11-13 10:05:10 +00:00
parent 09711d12d0
commit 8063a1685c

View file

@ -4,7 +4,7 @@
#include <Arduino.h> #include <Arduino.h>
#define FADE_IN_DURATION 500 #define FADE_IN_DURATION 500
#define FADE_OUT_DURATION 2000 #define FADE_OUT_DURATION 1000
LEDOutput _seatingLedOutput(0, true); LEDOutput _seatingLedOutput(0, true);
LED _seatingLeds("seating", &_seatingLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION); LED _seatingLeds("seating", &_seatingLedOutput, FADE_IN_DURATION, FADE_OUT_DURATION);
@ -20,6 +20,7 @@ BluetoothService _btService("Van Lights", &_btCallback);
void setup() { void setup() {
Serial.begin(115200); Serial.begin(115200);
_seatingLedOutput.attach(16); _seatingLedOutput.attach(16);
_seatingLedOutput.attach(17); _seatingLedOutput.attach(17);