Here is the basics of my code. Hopefully it helps.
#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include "FastLED.h"
FASTLED_USING_NAMESPACE
//MSGEQ7 Defines
#define MSGEQ7_STROBE_PIN 8
#define MSGEQ7_RESET_PIN 9
#define MSGEQ7_ANALOG_PIN A0
#define NUM_FREQUENCY_BANDS 7
// Set ESP8266 Serial object
#define EspSerial Serial1
#define ESP8266_BAUD 115200
ESP8266 wifi(&EspSerial);
//int state; // Define current state
int stripMode = 1; // Mode 0- Boblight, Mode 1- Music
#define DATA_PIN 6 // Datapin
#define NUM_LEDS 259
#define LEDCOUNT 259 // Number of LEDs used for boblight
#define BLACK_THRESHOLD 65
#define BLACK CRGB(0,0,0)
#define SHOWDELAY 150 // Delay in micro seconds before showing
#define BAUDRATE 115200 // Serial port speed, 460800 tested with Arduino Uno R3
#define BRIGHTNESS 200 // Max. brightness out of 255
const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0x18, 0x4D}; // Start prefix
char buffer[sizeof(prefix)]; // Temp buffer for receiving prefix data
CRGB leds[NUM_LEDS]; //FastLED array of LEDs
CRGB incomes[NUM_LEDS];
int bands[]{1,2,3,4,5,6,7};
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
//char auth[] = "token"; // For local server
char auth[] = "token"; //FOr Blynk Cloud
void loop()
{
Blynk.run();
switch (stripMode) {
case 0: FastLED.setBrightness(120);
boblight();
Serial.println("bob");
break;
case 1: msgeq7();
Serial.println("msgeq7");
break;
case 2: discostrobe();
FastLED.show();
Serial.println("disco");
break;
default: msgeq7();
break;
}
}
//BLYNK_CONNECTED() {
// if (isFirstConnect) {
// Blynk.syncAll();
// }
//}
void setup()
{
// Set up the MSGEQ7 IC
pinMode(MSGEQ7_ANALOG_PIN, INPUT);
pinMode(MSGEQ7_STROBE_PIN, OUTPUT);
pinMode(MSGEQ7_RESET_PIN, OUTPUT);
digitalWrite(MSGEQ7_RESET_PIN, LOW);
digitalWrite(MSGEQ7_STROBE_PIN, HIGH);
FastLED.addLeds<WS2812B,DATA_PIN,GRB(leds,NUM_LEDS).setCorrection(TypicalLEDStrip).setDither(BRIGHTNESS < 255);
FastLED.setBrightness(BRIGHTNESS);
Serial.begin(115200);
delay(10);
EspSerial.begin(ESP8266_BAUD);
delay(10);
//Blynk.begin(auth, wifi, "My wifi", "my pass", "192,168,1,114",8442); // This doesn't work
Blynk.begin(auth, wifi, "My wifi", "my pass"); //This works
}