|
FastLED 3.9.15
|
Noise effect on circular ring with ScreenMap.
Definition in file FxNoiseRing.ino.
#include <Arduino.h>#include "FastLED.h"#include "fl/stl/json.h"#include "fl/math/math.h"#include "fl/log/log.h"#include "noisegen.h"#include "fl/math/screenmap.h"#include "fl/stl/span.h"#include "fl/ui/ui.h"#include "fl/sensors/pir.h"#include "fl/stl/sstream.h"#include "fl/stl/assert.h"#include "fl/gfx/noise/noise.h"
Include dependency graph for FxNoiseRing.ino:Go to the source code of this file.
Macros | |
| #define | COLOR_ORDER GRB |
| #define | DATA_PIN 3 |
| #define | NUM_LEDS 250 |
| #define | PIN_PIR 0 |
| #define | PIR_FALLING_TIME 1000 |
| #define | PIR_LATCH_MS 60000 |
| #define | PIR_RISING_TIME 1000 |
Functions | |
| void | draw (uint32_t now) |
| void | loop () |
| void | setup () |
Variables | |
| fl::UISlider | brightness ("Brightness", 1, 0, 1) |
| CLEDController * | controller = nullptr |
| float | current_brightness = 0 |
| fl::CRGB | leds [NUM_LEDS] |
| fl::Pir | pir (PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME) |
| fl::UISlider | scale ("Scale", 4,.1, 4,.1) |
| fl::UISlider | timeBitshift ("Time Bitshift", 5, 0, 16, 1) |
| fl::UISlider | timescale ("Time Scale", 1,.1, 10,.1) |
| fl::UICheckbox | useDither ("Use Binary Dither", true) |