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 {
113113 if (cfg.update_callback != nullptr && count++ % cfg.update_frequency == 0 ) {
114114 // use custom update logic defined in config
115115 cfg.update_callback (&cfg, this );
116+ } else {
117+ display ();
116118 }
117119 }
118120
@@ -183,6 +185,11 @@ class LEDOutput {
183185 return max;
184186 }
185187
188+ // / Update the led_matrix (calling FastLED.show();
189+ void display () {
190+ FastLED.show ();
191+ }
192+
186193 // / Provides acces to the FFTDisplay object
187194 FFTDisplay &fftDisplay () { return *p_fft; }
188195
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ class LEDOutputUnoR4 {
7878 if (cfg.update_callback != nullptr && count++ % cfg.update_frequency == 0 ) {
7979 // use custom update logic defined in config
8080 cfg.update_callback (&cfg, this );
81+ } else {
82+ display ();
8183 }
8284 }
8385
You can’t perform that action at this time.
0 commit comments