49 uint32_t now = millis();
50 uint32_t hue_offset = (now / 100) % 256;
55 CHSV hsv(
hue, saturation, value);
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
central include file for FastLED, defines the CFastLED class/object
UISlider saturationSlider("Saturation", 255, 0, 255, 1)
UISlider valueSlider("Value", 255, 0, 255, 1)
UIGroup hsvControls("HSV Controls", hueSlider, saturationSlider, valueSlider, autoHue)
UICheckbox autoHue("Auto Hue", true)
UISlider hueSlider("Hue", 128, 0, 255, 1)
@ BGR
Blue, Green, Red (0210)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
CRGB hsv2rgb_rainbow(const struct CHSV &hsv)
CRGB hsv2rgb_spectrum(const struct CHSV &hsv)
Inline version of hsv2rgb_spectrum which returns a CRGB object.
void hsv2rgb_fullspectrum(const struct CHSV &hsv, CRGB &rgb)
Representation of an RGB pixel (Red, Green, Blue)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).