Skip to content

Commit fa337ad

Browse files
committed
moved autobrightness config
1 parent 694c38f commit fa337ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
extern byte FRAMES_PER_SECOND; // here you can control the speed. With the Access Point / Web Server the animations run a bit slower.
3636
// Originally constant, but can be changed using commands
3737

38+
//autobrightness stuff
39+
#define AUTOBRIGHTNESS_DELAY 1 //seconds per brightness update. Supports decimal values
40+
#define AUTOBRIGHTNESS_SAMPLES 5 //number of samples to average. Must be an integer
41+
3842
/* Optional Backlight Example:
3943
* Width: 11
4044
* Height: 3

Lighting.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "NTPTime.h"
66
#include "TimedEffects.h"
77

8-
//autobrightness stuff
9-
#define AUTOBRIGHTNESS_DELAY 1 //seconds per brightness update
10-
#define AUTOBRIGHTNESS_SAMPLES 5 //number of samples to average
11-
128
CRGB off_color = CRGB::Black;
139
CRGB *leds = new CRGB[NUM_LEDS+1]; //array that gets rendered, +1 for sacrifice LED in case its needed
1410
CRGB *spotlightLed = new CRGB[WIDTH*HEIGHT+1]; //dedicated spotlight array if on seperate pin, +1 for sacrifice LED in case its needed

0 commit comments

Comments
 (0)