File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 35
35
extern byte FRAMES_PER_SECOND ; // here you can control the speed. With the Access Point / Web Server the animations run a bit slower.
36
36
// Originally constant, but can be changed using commands
37
37
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
+
38
42
/* Optional Backlight Example:
39
43
* Width: 11
40
44
* Height: 3
Original file line number Diff line number Diff line change 5
5
#include " NTPTime.h"
6
6
#include " TimedEffects.h"
7
7
8
- // autobrightness stuff
9
- #define AUTOBRIGHTNESS_DELAY 1 // seconds per brightness update
10
- #define AUTOBRIGHTNESS_SAMPLES 5 // number of samples to average
11
-
12
8
CRGB off_color = CRGB::Black;
13
9
CRGB *leds = new CRGB[NUM_LEDS+1 ]; // array that gets rendered, +1 for sacrifice LED in case its needed
14
10
CRGB *spotlightLed = new CRGB[WIDTH*HEIGHT+1 ]; // dedicated spotlight array if on seperate pin, +1 for sacrifice LED in case its needed
You can’t perform that action at this time.
0 commit comments