Skip to content

Instantly share code, notes, and snippets.

@skittleson
Last active September 13, 2020 23:49
Show Gist options
  • Save skittleson/afd3fc9ff7f7f0f2140e5e87a5f2718f to your computer and use it in GitHub Desktop.
Save skittleson/afd3fc9ff7f7f0f2140e5e87a5f2718f to your computer and use it in GitHub Desktop.
#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