Created
May 10, 2018 18:44
-
-
Save phrfpeixoto/2e7bf3813c039b0191f0eb231cc52d2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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