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