Skip to content

Commit cb1b618

Browse files
committed
LEDOutput
1 parent 72dd681 commit cb1b618

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/AudioLibs/LEDOutput.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@ struct LEDOutputConfig {
3535
*/
3636
class LEDOutput {
3737
public:
38-
LEDOutputConfig defaultConfig() { return cfg; }
39-
38+
/// @brief Default Constructor
39+
/// @param fft
4040
LEDOutput(AudioFFTBase &fft) {
4141
selfLEDOutput = this;
4242
p_fft = &fft;
4343
AudioFFTConfig &fft_cfg = p_fft->config();
4444
fft_cfg.callback = fftCallback;
4545
}
4646

47+
/// Provides the default config object
48+
LEDOutputConfig defaultConfig() { return cfg; }
49+
4750
/// Setup Led matrix
4851
bool begin(LEDOutputConfig config) {
4952
cfg = config;
@@ -116,6 +119,11 @@ class LEDOutput {
116119
return total;
117120
}
118121

122+
/// Provides access to the actual config object. E.g. to change the update logic
123+
LEDOutputConfig &config() {
124+
return cfg;
125+
}
126+
119127
protected:
120128
friend class AudioFFTBase;
121129
Vector<CRGB> leds{0};

0 commit comments

Comments
 (0)