29#define COLOR_ORDER GRB
33#define PIR_LATCH_MS 60000
34#define PIR_RISING_TIME 1000
35#define PIR_FALLING_TIME 1000
70 pir.activate(millis());
74 double angle_offset = double(now) / 32000.0 * 2 *
M_PI;
84 x *= 0xffff *
scale.as<
double>();
85 y *= 0xffff *
scale.as<
double>();
88 uint16_t noise3 =
inoise16(
x,
y, 0xffff + now);
90 int16_t noise4 = map(noise3, 0, 255, -64, 255);
102 uint32_t now = millis();
103 uint8_t bri =
pir.transition(now);
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
uint8_t noise2[NUM_LAYERS][WIDTH][HEIGHT]
UISlider scale("Scale", 4,.1, 4,.1)
UISlider timescale("Time Scale", 1,.1, 10,.1)
Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
CLEDController * controller
UISlider timeBitshift("Time Bitshift", 5, 0, 16, 1)
UICheckbox useDither("Use Binary Dither", true)
UISlider brightness("Brightness", 1, 0, 1)
Base definition for an LED controller.
A simple timer utility class for tracking timed events.
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f)
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
#define DISABLE_DITHER
Disable dithering.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
uint16_t inoise16(uint32_t x, uint32_t y, uint32_t z, uint32_t t)
16-bit, fixed point implementation of Perlin's noise.
Implements a simple red square effect for 2D LED grids.
Noise generation classes.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Representation of an RGB pixel (Red, Green, Blue)