FastLED 3.9.15
Loading...
Searching...
No Matches
Particles1d.h File Reference
#include <FastLED.h>
#include "fl/fx/1d/particles.h"
#include "fl/math/screenmap.h"
#include "fl/ui/ui.h"
+ Include dependency graph for Particles1d.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DATA_PIN   3
 
#define NUM_LEDS   210
 
#define PARTICLE_GROUPS   2
 
#define PARTICLE_MAX   10
 

Functions

void loop ()
 
fl::Particles1d particles (NUM_LEDS, PARTICLE_MAX, PARTICLE_GROUPS)
 
void setup ()
 
fl::UICheckbox uiAutoSpawn ("Auto Spawn", true)
 
fl::UISlider uiBrightness ("Brightness", 64, 0, 255, 1)
 
fl::UICheckbox uiCyclical ("Cyclical", true)
 
fl::UISlider uiFadeAmount ("Trail Length", 2, 0, 10, 1)
 
fl::UISlider uiLifetime ("Avg Lifetime (sec)", 4.0, 0.5, 8.0, 0.5)
 
fl::UISlider uiOverdrawCount ("Overdraw Count", 20, 1, 50, 1)
 
fl::UIButton uiSpawnButton ("Spawn Particle")
 
fl::UISlider uiSpawnInterval ("Spawn Interval (sec)", 2.0, 0.1, 10.0, 0.1)
 
fl::UISlider uiSpeed ("Avg Speed", 1.0, 0.1, 3.0, 0.1)
 

Variables

uint32_t lastSpawnTime = 0
 
fl::CRGB leds [NUM_LEDS]