So I've got this 60 led strip which I want to display values from

So I’ve got this 60 led strip which I want to display values from an msgeq7 basically I want 20 leds to display one then the next 20 to display another analog value and the last 20 to display another I was thinking either light intensity or lighting up more leds when value increases but thats beside the issue. How do I include multiple analogreads into one strip?

google msgeq7 and you’ll see plenty of examples of storing each of the 7 values into an array. from there you can just map the values to 7 segments of the strip

Here’s an example for you to mess with. Once you have your three analog values, that have been scaled to the range of 0-255, lets call them ARead1, ARead2, and ARead3, you could use them on three sections of the strip like this:

// Fill 20 pixels, starting at leds[0]
// Hue is based on value of ARead1
fill_solid(leds, 20, CHSV(ARead1,255,255);

// Fill 20 pixels, starting at leds[20]
// Color red, and brightness is based on value of ARead2
// Minimum brightness clamped at 30 so it never goes black
fill_solid(leds+20, 20, CHSV(0,255,map(ARead2,0,255,30,255));

// Fill 0 to 20 pixels, starting at leds[40]
// Color green, and number of pixels based on value of ARead3
fill_solid(leds+40, 20, CRGB::Black); //clear previous display
fill_solid(leds+40, map(ARead3,0,255,0,20), CRGB::Green);

@marmil Sorry for the late response haven’t gotten around to trying this out but I just got it working, so hyped! Thanks a ton for the help.

@overflow Super, glad you’re getting into it! Share some video if you’re able to.

@marmil I will, this is for my car audio build so I’ll post it once it’s in place.