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#include "fl/sketch_macros.h"
25
26#if !SKETCH_HAS_LOTS_OF_MEMORY
27// Platform does not have enough memory
28void setup() {}
29void loop() {}
30#else
31
32#include "wavefx.h"
33
34using namespace fl; // Use the FastLED namespace for convenience
35
36
37void setup() {
38 Serial.begin(115200); // Initialize serial communication for debugging
40}
41
42void loop() {
43 // The main program loop that runs continuously
45}
46#endif
central include file for FastLED, defines the CFastLED class/object
void setup()
Definition FxWave2d.ino:28
void loop()
Definition FxWave2d.ino:29
IMPORTANT!
Definition crgb.h:20
void wavefx_loop()
void wavefx_setup()