   Blynk.begin(auth, ssid, pass);
 }
 
-
 void loop() {
   Blynk.run();
 }

char ssid[] = "Azionecoop";
char pass[] = "azionecoop2014";

//char ssid[] = "xxx";
//char pass[] = "xxx";

void showled(int R, int G, int B) {
  //FastLED.clear();
  for (int i = 0; i < NUM_LEDS; i++) {
    leds[i].setRGB( R/4, G/4, B/4);
  }
  FastLED.show();
}

//Add a zeRGBa Widget and set it to MERGE mode. Choose Virtual Pin V1
BLYNK_WRITE(V1) {
  int G = param[0].asInt();
  int R = param[1].asInt();
  int B = param[2].asInt();

  showled(R, G, B);

  // Do something with x and y
  Serial.print("R = ");
  Serial.print(R);
  Serial.print("; G = ");
  Serial.print(G);
  Serial.print("; B = ");
  Serial.print(B);
  Serial.println();
}


void setup() {
  Serial.begin(9600);

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// ----------- FastLed ---------------
#include <FastLED.h>
#define NUM_LEDS 8
#define DATA_PIN 5 // D5
CRGB leds[NUM_LEDS];
#define BRIGHTNESS  128
// -----------------------------------
int colori[NUM_LEDS] = {}; // only 2^8
bool power = 0;
// ---------------------

// You should get Auth Token in the Blynk App.
