18This example demonstrates the **UIHelp** component functionality.
22- **Markdown support** for rich text formatting
23- `Code blocks` for technical documentation
24- *Italic text* and **bold text**
25- Support for [links](https://fastled.io)
31UIHelp help("Your markdown content here");
34UIHelp help("Content");
35help.setGroup("Documentation");
401. Headers (H1, H2, H3)
412. Bold and italic text
423. Code blocks and inline code
434. Lists (ordered and unordered)
46Visit [FastLED Documentation](https://github.com/FastLED/FastLED/wiki) for more examples.)");
52FastLED provides several ways to work with colors:
54- `CRGB` for RGB colors
55- `CHSV` for HSV colors
56- `ColorFromPalette()` for palette-based colors
61leds[1] = CHSV(160, 255, 255); // Blue-green
62leds[2] = ColorFromPalette(RainbowColors_p, 64);
67Common animation techniques:
691. **Fading**: Use `fadeToBlackBy()` or `fadeLightBy()`
702. **Color cycling**: Modify HSV hue values
713. **Movement**: Shift array contents or use math functions
75- Call `FastLED.show()` only when needed
76- Use `FASTLED_DELAY()` instead of `delay()`
77- Consider using *fast math* functions for smoother animations)");
83 Serial.println(
"UIHelp Test Example");
84 Serial.println(
"==================");
94 Serial.println(
"UIHelp components created successfully!");
95 Serial.println(
"Check the web interface for rendered help documentation.");
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
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 fill_rainbow(CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) FL_NOEXCEPT
Fill a range of LEDs with a rainbow of colors.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...