<commit_before>/*
   <NAME> GCIB 2017 <NAME>

   <NAME>
*/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// ---------------------
//#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#include <FastLED.h>
#define NUM_LEDS 8
#define DATA_PIN 5 // D5
CRGB leds[NUM_LEDS];
#define BRIGHTNESS  128
// ---------------------

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxx";

// Your WiFi credentials.
// Set password to "" for open networks.
//  char ssid[] = "Azionecoop";
//  char pass[] = "<PASSWORD>";

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, G, B);
  }
  FastLED.show();
}

//Add a zeRGBa Widget and set it to MERGE mode. Choose Virtual Pin V1
BLYNK_WRITE(V1) {
  int R = param[0].asInt();
  int G = 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);
  FastLED.addLeds<WS2811, DATA_PIN>(leds, NUM_LEDS);
  FastLED.setBrightness( BRIGHTNESS );
  Blynk.begin(auth, ssid, pass);
}


void loop() {
  Blynk.run();<commit_msg>Fixed RGB order and 2^10 to 2^8 RGB<commit_after>/*
   <NAME> GCIB 2017 <NAME>

   <NAME>
*/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// ---------------------
//#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#include <FastLED.h>
#define NUM_LEDS 8
#define DATA_PIN 5 // D5
CRGB leds[NUM_LEDS];
#define BRIGHTNESS  128
// ---------------------

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxx";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Azionecoop";
char pass[] = "<PASSWORD>";

//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);
  FastLED.addLeds<WS2811, DATA_PIN>(leds, NUM_LEDS);
  FastLED.setBrightness( BRIGHTNESS );
  Blynk.begin(auth, ssid, pass);
}


void loop() {
  Blynk.run();
{'fraction_non_alphanumeric': 0.19452149791955617, 'fraction_numerical': 0.027739251040221916, 'mean_word_length': 2.9358799454297406, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3933839', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1111, 'n_words': 314}