void loop()
{
// Set reset pin low to enable strobe
digitalWrite(resetPin, HIGH);
digitalWrite(resetPin, LOW);
// Get all 7 spectrum values from the MSGEQ7
for (int i = 0; i < 7; i++)
{
digitalWrite(strobePin, LOW);
delayMicroseconds(30); // Allow output to settle
spectrumValue[i] = analogRead(analogPin);
// Constrain any value above 1023 or below filterValue
spectrumValue[i] = constrain(spectrumValue[i], filterValue, 1023);
// Remap the value to a number between 0 and 255
// spectrumValue[i] = map(spectrumValue[i], filterValue, 1023, 0, 255);
spectrumValue[i] = map(spectrumValue[i], filterValue, 1023, 0, 54); // 54 Neopixels per spectrumValue
digitalWrite(strobePin, HIGH);
}