File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,18 @@ struct LEDOutputConfig {
35
35
*/
36
36
class LEDOutput {
37
37
public:
38
- LEDOutputConfig defaultConfig () { return cfg; }
39
-
38
+ // / @brief Default Constructor
39
+ // / @param fft
40
40
LEDOutput (AudioFFTBase &fft) {
41
41
selfLEDOutput = this ;
42
42
p_fft = &fft;
43
43
AudioFFTConfig &fft_cfg = p_fft->config ();
44
44
fft_cfg.callback = fftCallback;
45
45
}
46
46
47
+ // / Provides the default config object
48
+ LEDOutputConfig defaultConfig () { return cfg; }
49
+
47
50
// / Setup Led matrix
48
51
bool begin (LEDOutputConfig config) {
49
52
cfg = config;
@@ -116,6 +119,11 @@ class LEDOutput {
116
119
return total;
117
120
}
118
121
122
+ // / Provides access to the actual config object. E.g. to change the update logic
123
+ LEDOutputConfig &config () {
124
+ return cfg;
125
+ }
126
+
119
127
protected:
120
128
friend class AudioFFTBase ;
121
129
Vector<CRGB> leds{0 };
You can’t perform that action at this time.
0 commit comments