FastLED 3.9.15
Loading...
Searching...
No Matches
Wave2d.ino File Reference
#include "fl/ui.h"
#include "fx/2d/wave.h"
#include <Arduino.h>
#include <FastLED.h>
+ Include dependency graph for Wave2d.ino:

Go to the source code of this file.

Macros

#define HEIGHT   100
 
#define IS_SERPINTINE   true
 
#define NUM_LEDS   ((WIDTH) * (HEIGHT))
 
#define WIDTH   100
 

Functions

SuperSample getSuperSample ()
 
void loop ()
 
void setup ()
 
void triggerRipple (WaveSimulation2D &waveSim)
 

Variables

UICheckbox autoTrigger ("Auto Trigger", true)
 
UIButton button ("Trigger")
 
UISlider dampening ("Dampening", 9.0f, 0.0f, 20.0f, 0.1f)
 
UIDescription description ("Shows the use of the Wave2d effect.")
 
UISlider extraFrames ("Extra Frames", 0.0f, 0.0f, 8.0f, 1.0f)
 
UICheckbox halfDuplex ("Half Duplex", true)
 
CRGB leds [NUM_LEDS]
 
UISlider slider ("Speed", 0.18f, 0.0f, 1.0f)
 
UISlider superSample ("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)
 
UITitle title ("Wave2D Demo")
 
WaveSimulation2D waveSim (WIDTH, HEIGHT, SUPER_SAMPLE_4X)
 
XYMap xyMap (WIDTH, HEIGHT, IS_SERPINTINE)