FastLED
3.9.15
Loading...
Searching...
No Matches
wavefx.h
Go to the documentation of this file.
1
2
#pragma once
3
4
5
6
/*
7
This demo is best viewed using the FastLED compiler.
8
9
Windows/MacOS binaries: https://github.com/FastLED/FastLED/releases
10
11
Python
12
13
Install: pip install fastled
14
Run: fastled <this sketch directory>
15
This will compile and preview the sketch in the browser, and enable
16
all the UI elements you see below.
17
18
OVERVIEW:
19
This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
20
It creates ripple effects that propagate across the LED matrix, similar to water waves.
21
The demo includes two wave layers (upper and lower) with different colors and properties,
22
which are blended together to create complex visual effects.
23
*/
24
25
26
// Define the dimensions of our LED matrix
27
#define HEIGHT 64
// Number of rows in the matrix
28
#define WIDTH 64
// Number of columns in the matrix
29
#define NUM_LEDS ((WIDTH) * (HEIGHT))
// Total number of LEDs
30
#define IS_SERPINTINE true
// Whether the LED strip zigzags back and forth (common in matrix layouts)
31
32
void
wavefx_setup
();
33
void
wavefx_loop
();
wavefx_loop
void wavefx_loop()
Definition
wavefx.cpp:370
wavefx_setup
void wavefx_setup()
Definition
wavefx.cpp:352
examples
FxWave2d
wavefx.h
Generated on Tue Jun 24 2025 00:58:14 for FastLED by
1.13.2