|
FastLED 3.9.15
|
Audio-reactive EL panel driver with auto-gain via Vibe detector.
Definition in file ElPanelReactive.ino.
#include <FastLED.h>#include "el_panel.h"#include "fl/math/filter/filter.h"#include "fl/math/math.h"#include "fl/ui/ui.h"
Include dependency graph for ElPanelReactive.ino:Go to the source code of this file.
Functions | |
| fl::UIDescription | description ("A visualizer for ElPanel, in wasm mode it shows as 2 sets of 4 dots representing the panels. In real device mode it drives EL panel PWM at 50Hz") |
| void | loop () |
| void | setup () |
Variables | |
| fl::UISlider | attack1 ("Attack", 0.081f, 0.001f, 0.5f, 0.005f) |
| fl::UISlider | attack2 ("Attack", 0.081f, 0.001f, 0.5f, 0.005f) |
| fl::UIAudio | audio_ui ("Audio Input") |
| fl::UISlider | decay1 ("Decay", 0.3f, 0.01f, 1.0f, 0.01f) |
| fl::UISlider | decay2 ("Decay", 0.3f, 0.01f, 1.0f, 0.01f) |
| static fl::AttackDecayFilter< float > | filterHigh (0.081f, 0.3f) |
| static fl::AttackDecayFilter< float > | filterLow (0.081f, 0.3f) |
| fl::UIGroup | group1 ("Panel 1", threshold1, attack1, decay1) |
| fl::UIGroup | group2 ("Panel 2", threshold2, attack2, decay2) |
| static bool | isSilent = false |
| static const uint32_t | kAudioTimeoutMs = 150 |
| static uint32_t | lastAudioMs = 0 |
| static uint32_t | lastMillis = 0 |
| fl::UISlider | sensitivity ("Sensitivity", 1.5f, 0.3f, 4.0f, 0.1f) |
| fl::UISlider | threshold1 ("Threshold", 0.54f, 0.0f, 1.0f, 0.01f) |
| fl::UISlider | threshold2 ("Threshold", 0.94f, 0.0f, 1.0f, 0.01f) |
| fl::UITitle | title ("ElPanel") |