Last active
September 13, 2020 23:49
-
-
Save skittleson/afd3fc9ff7f7f0f2140e5e87a5f2718f 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 <WS2812FX.h> | |
#define LED_COUNT 50 | |
#define LED_PIN D5 | |
WS2812FX ws2812fx = WS2812FX(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
ws2812fx.init(); | |
ws2812fx.setBrightness(70); | |
int speed = LED_COUNT * 100; | |
ws2812fx.setSpeed(speed); | |
ws2812fx.setColor(255, 69,3) ; | |
ws2812fx.setMode(FX_MODE_FIRE_FLICKER_INTENSE); | |
ws2812fx.start(); | |
} | |
void loop() { | |
ws2812fx.service(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment