Skip to content

Instantly share code, notes, and snippets.

@phrfpeixoto
Created May 10, 2018 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrfpeixoto/2e7bf3813c039b0191f0eb231cc52d2f to your computer and use it in GitHub Desktop.
Save phrfpeixoto/2e7bf3813c039b0191f0eb231cc52d2f to your computer and use it in GitHub Desktop.
#include "FastLED.h"
#define DATA_PIN 18
//#define CLK_PIN 4
#define LED_TYPE WS2812
#define COLOR_ORDER GRB
#define NUM_LEDS 64
CRGB leds[NUM_LEDS];
#define BRIGHTNESS 96
void setup() {
pinMode(DATA_PIN, OUTPUT);
// tell FastLED about the LED strip configuration
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
// set master brightness control
FastLED.setBrightness(BRIGHTNESS);
fill_solid(leds, NUM_LEDS, CRGB::Blue);
FastLED.show();
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment