Skip to content

Commit

Permalink
Trying to use a Visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 12, 2023
1 parent a7c5165 commit f90b04d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usermods/usermod_v2_audiolux/usermod_v2_audiolux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();

Expand All @@ -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() {
Expand Down

0 comments on commit f90b04d

Please sign in to comment.