FastLED 3.9.15
Loading...
Searching...
No Matches
UITest.ino File Reference
#include <Arduino.h>
#include <FastLED.h>
+ Include dependency graph for UITest.ino:

Go to the source code of this file.

Macros

#define LED_PIN   2
 
#define NUM_LEDS   16
 

Functions

UIHelp helpAdvanced (R"(## Advanced FastLED Usage ### Color Management FastLED provides several ways to work with colors: - `CRGB` for RGB colors - `CHSV` for HSV colors - `ColorFromPalette()` for palette-based colors ```cpp // Set pixel colors leds[0] = CRGB::Red; leds[1] = CHSV(160, 255, 255); // Blue-green leds[2] = ColorFromPalette(RainbowColors_p, 64); ``` ### Animation Patterns Common animation techniques: 1. **Fading**: Use `fadeToBlackBy()` or `fadeLightBy()` 2. **Color cycling**: Modify HSV hue values 3. **Movement**: Shift array contents or use math functions ### Performance Tips - Call `FastLED.show()` only when needed - Use `FASTLED_DELAY()` instead of `delay()` - Consider using *fast math* functions for smoother animations)")
 
UIHelp helpBasic (R"(# FastLED UIHelp Test This example demonstrates the **UIHelp** component functionality. ## Features - **Markdown support** for rich text formatting - `Code blocks` for technical documentation - *Italic text* and **bold text** - Support for [links](https://fastled.io) ## Usage ```cpp // Basic usage UIHelp help("Your markdown content here"); // With grouping UIHelp help("Content"); help.setGroup("Documentation"); ``` ### Supported Markdown 1. Headers (H1, H2, H3) 2. Bold and italic text 3. Code blocks and inline code 4. Lists (ordered and unordered) 5. Links Visit [FastLED Documentation](https://github.com/FastLED/FastLED/wiki) for more examples.)")
 
void loop ()
 
void setup ()
 

Variables

CRGB leds [NUM_LEDS]