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/*
7This demo is best viewed using the FastLED compiler.
8
9Windows/MacOS binaries: https://github.com/FastLED/FastLED/releases
10
11Python
12
13Install: pip install fastled
14Run: fastled <this sketch directory>
15This will compile and preview the sketch in the browser, and enable
16all the UI elements you see below.
17
18OVERVIEW:
19This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
20It creates ripple effects that propagate across the LED matrix, similar to water waves.
21The demo includes two wave layers (upper and lower) with different colors and properties,
22which 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
32void wavefx_setup();
33void wavefx_loop();
void wavefx_loop()
Definition wavefx.cpp:370
void wavefx_setup()
Definition wavefx.cpp:352