WS2812B LED to Beat of Music with Microphone

All,
Thanks to Hansey and other coders @ GITHUB I hobbled together some code that loads in the IDE but the lights only stay on and do not react to the sound. I know the problem has to do with defining how the WS2818B lights should react to sound. I think the code is screwed up here:

// Global variables can be changed on the fly.
uint8_t max_bright = 128; // Overall brightness definition. It can be changed on the fly.
struct CRGB leds[NUM_LEDS]; // Initialize our LED array.

void setup() {

  • Serial.begin(9600);*
  • FastLED.addLeds<LED_TYPE, LED_DT, COLOR_ORDER>(leds, NUM_LEDS); //Set all lights to make sure all are working as expected. Use this for WS2812B or APA102*
  • for (int i = 0; i < NUM_LEDS; i++)*
    _ leds = CRGB(0, 0, 255);_
    * FastLED.show();*
    * delay(1000); *
    WHOLE PROGRAM ATTACHED
    Fast_LED_ws1212B.ino (10.1 KB)

Are you sure the microphone is working? Do you get "good numbers" when you run [u]Analog Read Serial[/u]?

DVdoug thanks for the quick response. Yes I am getting readings with the Analog Read Program. Just tested it.