Looking to do a Halloween Led project using single strip of 99 WS2812 and Arduino UNO. Want to place behind curtain shining up on them. Want to make patterns of Purple, green, red, and orange along with flash effects. I have found some individual examples and wonder what others in community have done. Making this into project for my kids 9 and 10 to work on code and wiring.
marmil
(Marc Miller)
October 22, 2017, 4:01am
2
Here’s a breathing effect. Can set the color red or something Halloweeny.
//***************************************************************
// Breathing effect
// Color shifts from hueA to hueB as it pulses.
//
// Set A and B to the same hue if you don't want the color to
// change. Saturation for the high and low can also be set.
//
// Marc Miller, 2015
// Updated Aug 2020 - removed delay, added dim8_video
//***************************************************************
#include "FastLED.h"
#define LED_TYPE WS2811 //WS2811, WS2812, WS2812B
#define COLOR_ORDER RGB
#define DATA_PIN 11
#define NUM_LEDS 25
#define BRIGHTNESS 255
CRGB leds[NUM_LEDS];
static float pulseSpeed = 0.5; // Larger value gives faster pulse.
This file has been truncated. show original
Maybe check out my marquee v3 example too? Might be fun with purple and green.
Share what you and the kids come up.
Ken_White
(Ken White)
October 22, 2017, 12:20pm
3
@Peter_Hanse - Check out my FastLED version of Adafruit’s Random Spooky Eyes sketch at:
The way they generate random Halloween colors might be of interest to you.
Thank you all will review this code with my kids.