File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ class LEDOutput {
113
113
if (cfg.update_callback != nullptr && count++ % cfg.update_frequency == 0 ) {
114
114
// use custom update logic defined in config
115
115
cfg.update_callback (&cfg, this );
116
+ } else {
117
+ display ();
116
118
}
117
119
}
118
120
@@ -183,6 +185,11 @@ class LEDOutput {
183
185
return max;
184
186
}
185
187
188
+ // / Update the led_matrix (calling FastLED.show();
189
+ void display () {
190
+ FastLED.show ();
191
+ }
192
+
186
193
// / Provides acces to the FFTDisplay object
187
194
FFTDisplay &fftDisplay () { return *p_fft; }
188
195
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ class LEDOutputUnoR4 {
78
78
if (cfg.update_callback != nullptr && count++ % cfg.update_frequency == 0 ) {
79
79
// use custom update logic defined in config
80
80
cfg.update_callback (&cfg, this );
81
+ } else {
82
+ display ();
81
83
}
82
84
}
83
85
You can’t perform that action at this time.
0 commit comments