 
     // check to see if we've been given a new command, if so, hurry things along
     if (Serial.available() > 0) {
-      delay(change_delay_ms);
+      FastLED.delay(change_delay_ms);
     } else {
-      delay(delay_ms);
+      FastLED.delay(delay_ms);
     }
   }
 

#define CHANGE_MIN_VAL 64
#define CHANGE_DURATION 800

// state
CRGB leds[NUM_LEDS];
bool initialized;
uint8_t hue;
uint8_t val;
bool pulse;
long pulse_duration;



void fade(uint8_t new_val, long duration) {
  if (val == new_val) {
    return;
  }
  

#define LED_CORRECTION TypicalSMD5050

#define DATA_PIN 13
#define BUTTON_IN 10
#define ANALOG_INPUT A9
#define EXTRA_PIN_A 7
#define EXTRA_PIN_B 11

// visuals
#define PULSE_MAX_VAL 255
