FastLED 3.9.15
Loading...
Searching...
No Matches
Sailboat.ino File Reference

Detailed Description

Audio-reactive sailboat lighting with perlin noise, ambient particles, and beat meteors for EDM music.

Definition in file Sailboat.ino.

#include <FastLED.h>
#include "fl/channels/config.h"
#include "fl/chipsets/chipset_timing_config.h"
#include "fl/fx/1d/perlin_particle_punch.h"
#include "fl/fx/fx_engine.h"
#include "fl/ui/ui.h"
+ Include dependency graph for Sailboat.ino:

Go to the source code of this file.

Macros

#define BRIGHTNESS   255
 
#define COLOR_ORDER   RGB
 
#define DATA_PIN   3
 
#define I2S_CLK   4
 
#define I2S_SD   8
 
#define I2S_WS   7
 
#define NUM_LEDS   200
 

Functions

void loop ()
 
void setup ()
 

Variables

fl::UISlider ambientDecaySlider ("Ambient Fade", 0.955f, 0.90f, 1.0f, 0.005f)
 
fl::UISlider ambientThreshold ("Ambient Threshold", 1.0f, 0.5f, 3.0f, 0.1f)
 
fl::UISlider ambientTrailSlider ("Ambient Trail", 217.0f, 0.0f, 255.0f, 1.0f)
 
fl::UIAudio audio_ui ("Audio Input", audioConfig)
 
fl::audio::Config audioConfig
 
fl::UISlider debrisDecaySlider ("Debris Fade", 0.96f, 0.80f, 1.0f, 0.01f)
 
fl::UISlider debrisVelDecaySlider ("Debris Drag", 0.95f, 0.85f, 1.0f, 0.01f)
 
fl::UISlider dragSlider ("Particle Drag", 0.06f, 0.0f, 1.0f, 0.01f)
 
fl::UICheckbox enableAmbient ("Ambient Particles", true)
 
fl::UICheckbox enableMeteors ("Beat Meteors", true)
 
fl::UICheckbox enableTimeWarp ("Noise Time-Warp", false)
 
fl::FxEngine fxEngine (NUM_LEDS)
 
CRGB leds [NUM_LEDS]
 
fl::UISlider meteorThreshold ("Meteor Threshold", 1.5f, 1.5f, 6.0f, 0.1f)
 
fl::UISlider meteorTrailSlider ("Meteor Trail", 171.0f, 0.0f, 255.0f, 1.0f)
 
fl::UISlider minVelocitySlider ("Min Velocity", 0.01f, 0.01f, 0.5f, 0.01f)
 
float noiseTimeMultiplier = 1.0f
 
fl::PerlinParticlePunch sailboatFx (NUM_LEDS)
 
fl::ScreenMap screenMap
 
fl::UISlider speedSlider ("Particle Speed", 2.6f, 0.1f, 3.0f, 0.1f)