FastLED
3.9.15
Loading...
Searching...
No Matches
wavefx.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <FastLED.h>
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
#if !SKETCH_HAS_LARGE_MEMORY
33
// Stub implementations for low-memory platforms
34
inline
void
wavefx_setup
() {}
35
inline
void
wavefx_loop
() {}
36
#else
37
void
wavefx_setup
();
38
void
wavefx_loop
();
39
#endif
wavefx_loop
void wavefx_loop()
Definition
wavefx.h:35
wavefx_setup
void wavefx_setup()
Definition
wavefx.h:34
examples
Fx
FxWave2d
wavefx.h
Generated on Tue Jun 16 2026 00:06:58 for FastLED by
1.13.2