FastLED
3.9.15
Loading...
Searching...
No Matches
FxWave2d.ino
Go to the documentation of this file.
1
2
3
// @filter: (memory is large)
4
5
/*
6
This demo is best viewed using the FastLED compiler.
7
8
Windows/MacOS binaries: https://github.com/FastLED/FastLED/releases
9
10
Python
11
12
Install: pip install fastled
13
Run: fastled <this sketch directory>
14
This will compile and preview the sketch in the browser, and enable
15
all the UI elements you see below.
16
17
OVERVIEW:
18
This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
19
It creates ripple effects that propagate across the LED matrix, similar to water waves.
20
The demo includes two wave layers (upper and lower) with different colors and properties,
21
which are blended together to create complex visual effects.
22
*/
23
24
#include <
Arduino.h
>
// Core Arduino functionality
25
#include <FastLED.h>
// Main FastLED library for controlling LEDs
26
#include "
wavefx.h
"
27
28
// Use the FastLED namespace for convenience
29
30
31
void
setup
() {
32
Serial
.begin(115200);
// Initialize serial communication for debugging
33
wavefx_setup
();
34
}
35
36
void
loop
() {
37
// The main program loop that runs continuously
38
wavefx_loop
();
39
}
setup
void setup()
Definition
FxWave2d.ino:31
loop
void loop()
Definition
FxWave2d.ino:36
arduino.h
Serial
#define Serial
Definition
serial.h:304
wavefx_loop
void wavefx_loop()
Definition
wavefx.h:35
wavefx_setup
void wavefx_setup()
Definition
wavefx.h:34
wavefx.h
examples
Fx
FxWave2d
FxWave2d.ino
Generated on Tue Jun 16 2026 00:06:58 for FastLED by
1.13.2