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
#include "
fl/sketch_macros.h
"
25
26
#if !SKETCH_HAS_LOTS_OF_MEMORY
27
// Platform does not have enough memory
28
void
setup
() {}
29
void
loop
() {}
30
#else
31
32
#include "
wavefx.h
"
33
34
using namespace
fl
;
// Use the FastLED namespace for convenience
35
36
37
void
setup
() {
38
Serial.begin(115200);
// Initialize serial communication for debugging
39
wavefx_setup
();
40
}
41
42
void
loop
() {
43
// The main program loop that runs continuously
44
wavefx_loop
();
45
}
46
#endif
FastLED.h
central include file for FastLED, defines the CFastLED class/object
setup
void setup()
Definition
FxWave2d.ino:28
loop
void loop()
Definition
FxWave2d.ino:29
fl
IMPORTANT!
Definition
crgb.h:20
sketch_macros.h
wavefx_loop
void wavefx_loop()
wavefx_setup
void wavefx_setup()
wavefx.h
examples
FxWave2d
FxWave2d.ino
Generated on Fri Aug 22 2025 20:59:33 for FastLED by
1.13.2