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
Install: pip install fastled
9
Run: fastled <this sketch directory>
10
This will compile and preview the sketch in the browser, and enable
11
all the UI elements you see below.
12
13
OVERVIEW:
14
This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
15
It creates ripple effects that propagate across the LED matrix, similar to water waves.
16
The demo includes two wave layers (upper and lower) with different colors and properties,
17
which are blended together to create complex visual effects.
18
*/
19
20
21
// Define the dimensions of our LED matrix
22
#define HEIGHT 64
// Number of rows in the matrix
23
#define WIDTH 64
// Number of columns in the matrix
24
#define NUM_LEDS ((WIDTH) * (HEIGHT))
// Total number of LEDs
25
#define IS_SERPINTINE true
// Whether the LED strip zigzags back and forth (common in matrix layouts)
26
27
void
wavefx_setup
();
28
void
wavefx_loop
();
wavefx_loop
void wavefx_loop()
Definition
wavefx.cpp:369
wavefx_setup
void wavefx_setup()
Definition
wavefx.cpp:351
examples
FxWave2d
wavefx.h
Generated on Thu Jun 5 2025 04:29:38 for FastLED by
1.13.2