Will_Tatam
Sat, 12 Jan 2019 16:10:16 +0000
FastLED Archive

One of the things I love about playing around with FastLED is that by tweaking the parameters of a given pattern, you can get some quite different effects. Doing this by editing and recompiling can be very slow, esp with some controllers.
I find it’s much better to use a variable resistor or DMX to allow you to tweak at runtime

Example of how the Cylon example converted to be a sCAN (E1.31) lighting fixture

github.com

netmindz/arduino/blob/master/ESP8266/Cylon_wifi/Cylon_wifi.ino

#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
#include <ESP8266WiFi.h>
#include <ESPAsyncE131.h>

#define UNIVERSE 1        // First DMX Universe to listen for
#define UNIVERSE_COUNT 1  // Total number of Universes to listen for, starting at UNIVERSE

#define CHANNEL_START 1 /* Channel to start listening at */

// How many leds in your strip?
#define NUM_LEDS 30

// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN.  For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
#define DATA_PIN D4
#define CLOCK_PIN 13

int JUMP = 1;

This file has been truncated. show original

3 posts - 1 participant