FastLED 3.9.15
Loading...
Searching...
No Matches
wasm_impl.h File Reference
#include <FastLED.h>
#include "fl/fx/2d/noisepalette.h"
#include "fl/stl/json.h"
#include "fl/stl/span.h"
#include "fl/fx/fx_engine.h"
#include "fl/fx/2d/animartrix.hpp"
#include "fl/ui/ui.h"
+ Include dependency graph for wasm_impl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BRIGHTNESS   96
 
#define COLOR_ORDER   GRB
 
#define GRID_SERPENTINE   false
 
#define LED_PIN   3
 
#define MATRIX_HEIGHT   32
 
#define MATRIX_WIDTH   32
 
#define NUM_LEDS   (MATRIX_WIDTH * MATRIX_HEIGHT)
 
#define SCALE   20
 
#define SPEED   30
 

Functions

fl::Animartrix animartrix (xyMap, fl::AnimartrixAnim::POLAR_WAVES)
 
fl::UIGroup animartrixControls ("fl::Animartrix Controls", fxIndex, changeFx)
 
fl::UISlider brightness ("Brightness", 255, 0, 255)
 
fl::UIButton changeFx ("Switch between Noise & fl::Animartrix")
 
fl::UIButton changePalette ("Noise - Next Palette")
 
fl::UICheckbox changePallete ("Noise - Auto Palette", true)
 
fl::UISlider changePalletTime ("Noise - Time until next random Palette", 5, 1, 100)
 
fl::UIDescription description ("This example combines two features of FastLED to produce a remarkable range of effects from a relatively small amount of code. This example combines FastLED's color palette lookup functions with FastLED's Perlin noise generator, and the combination is extremely powerful")
 
fl::UIGroup displayControls ("Display Controls", brightness, isOff, timeSpeed)
 
fl::FxEngine fxEngine (NUM_LEDS)
 
UINumberField fxIndex ("fl::Animartrix - index", 0, 0, static_cast< int >(fl::AnimartrixAnim::NUM_ANIMATIONS))
 
fl::UICheckbox isOff ("Off", false)
 
void loop ()
 
fl::UIGroup noiseControls ("Noise Controls", speed, changePallete, changePalletTime, scale, changePalette)
 
fl::UISlider scale ("Noise - Scale", 20, 1, 100)
 
void setup ()
 
fl::UISlider speed ("Noise - Speed", 15, 1, 50)
 
fl::UISlider timeSpeed ("Time Speed", 1, -10, 10,.1)
 
fl::UITitle title ("FastLED Wasm Demo")
 

Variables

fl::CRGB leds [NUM_LEDS]
 
fl::NoisePalette noisePalette = fl::NoisePalette(xyMap)
 
fl::XYMap xyMap = fl::XYMap::constructRectangularGrid(MATRIX_WIDTH, MATRIX_HEIGHT)