FastLED 3.9.15
Loading...
Searching...
No Matches
FxWave2d.ino
Go to the documentation of this file.
1
2
3/*
4This demo is best viewed using the FastLED compiler.
5
6Windows/MacOS binaries: https://github.com/FastLED/FastLED/releases
7
8Python
9
10Install: pip install fastled
11Run: fastled <this sketch directory>
12This will compile and preview the sketch in the browser, and enable
13all the UI elements you see below.
14
15OVERVIEW:
16This sketch demonstrates a 2D wave simulation with multiple layers and blending effects.
17It creates ripple effects that propagate across the LED matrix, similar to water waves.
18The demo includes two wave layers (upper and lower) with different colors and properties,
19which are blended together to create complex visual effects.
20*/
21
22#include <Arduino.h> // Core Arduino functionality
23#include <FastLED.h> // Main FastLED library for controlling LEDs
24
25#include "wavefx.h"
26
27using namespace fl; // Use the FastLED namespace for convenience
28
29
30void setup() {
31 Serial.begin(115200); // Initialize serial communication for debugging
33}
34
35void loop() {
36 // The main program loop that runs continuously
38}
central include file for FastLED, defines the CFastLED class/object
void setup()
Definition FxWave2d.ino:30
void loop()
Definition FxWave2d.ino:35
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16
void wavefx_loop()
Definition wavefx.cpp:370
void wavefx_setup()
Definition wavefx.cpp:352