36#define COLOR_ORDER GRB
40#define PIR_LATCH_MS 60000
41#define PIR_RISING_TIME 1000
42#define PIR_FALLING_TIME 1000
77 double angle_offset = double(now) / 32000.0 * 2 *
FL_M_PI;
81 float noise_radius =
scale.as<
float>();
91 hsv.s =
fl::max(128u, (
unsigned)hsv.s);
94 int16_t adjusted_val = map(val, 0, 255, -64, 255);
95 if (adjusted_val < 0) {
108 uint8_t bri =
pir.transition(now);
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UICheckbox useDither("Use Binary Dither", true)
CLEDController * controller
fl::UISlider timeBitshift("Time Bitshift", 5, 0, 16, 1)
fl::Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
fl::UISlider brightness("Brightness", 1, 0, 1)
fl::UISlider timescale("Time Scale", 1,.1, 10,.1)
fl::UISlider scale("Scale", 4,.1, 4,.1)
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f) FL_NOEXCEPT
fl::CLEDController CLEDController
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
#define DISABLE_DITHER
Disable dithering.
Functions to generate noise patterns on rings and spheres.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
CHSV noiseRingHSV8(float angle, u32 time, float radius)
Generate HSV8 (8-bit) noise for a ring pattern.
FastLED's Elegant JSON Library: fl::json
Centralized logging categories for FastLED hardware interfaces and subsystems.
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Noise generation classes.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Aggregator header for the fl/ui/ family of per-element UI types.