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.
8Install: pip install fastled
9Run: fastled <this sketch directory>
10This will compile and preview the sketch in the browser, and enable
11all the UI elements you see below.
12
13OVERVIEW:
14This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
15It creates ripple effects that propagate across the LED matrix, similar to water waves.
16The demo includes two wave layers (upper and lower) with different colors and properties,
17which 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
27void wavefx_setup();
28void wavefx_loop();
void wavefx_loop()
Definition wavefx.cpp:369
void wavefx_setup()
Definition wavefx.cpp:351