From f90b04de100d3fb44d71cf4d0a80f5af82c80dcd Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Thu, 12 Oct 2023 22:06:13 +0100 Subject: [PATCH] Trying to use a Visualization --- usermods/usermod_v2_audiolux/usermod_v2_audiolux.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usermods/usermod_v2_audiolux/usermod_v2_audiolux.h b/usermods/usermod_v2_audiolux/usermod_v2_audiolux.h index f2c64c9002..a486905033 100644 --- a/usermods/usermod_v2_audiolux/usermod_v2_audiolux.h +++ b/usermods/usermod_v2_audiolux/usermod_v2_audiolux.h @@ -15,6 +15,7 @@ class AudioLux { int NUM_LEDS; LEDStrip ledstrip = LEDStrip(NUM_LEDS); + LEDs leds = LEDs(&ledstrip, 0, 0, false); Input* input; Visualization* viz; Animation* anim; @@ -29,6 +30,7 @@ class AudioLux { NUM_LEDS = SEGMENT.virtualWidth() * SEGMENT.virtualHeight(); ledstrip = LEDStrip(NUM_LEDS); + leds = LEDs(&ledstrip, 0, NUM_LEDS, false); input = new RandomInput(); @@ -50,8 +52,9 @@ class AudioLux { void setVizHueVisualization() { initEffect(); viz = new HueVisualization(input, NUM_LEDS); - // aim = new CircleAnimation(viz, ledstrip.leds, NUM_LEDS); + anim = new PassThroughAnimation(viz, leds); looper->addVisualization(viz); + looper->addAnimation(anim); } void setFireVisualization() {