17This example demonstrates the **UIHelp** component functionality.
21- **Markdown support** for rich text formatting
22- `Code blocks` for technical documentation
23- *Italic text* and **bold text**
24- Support for [links](https://fastled.io)
30UIHelp help("Your markdown content here");
33UIHelp help("Content");
34help.setGroup("Documentation");
391. Headers (H1, H2, H3)
402. Bold and italic text
413. Code blocks and inline code
424. Lists (ordered and unordered)
45Visit [FastLED Documentation](https://github.com/FastLED/FastLED/wiki) for more examples.)");
51FastLED provides several ways to work with colors:
53- `CRGB` for RGB colors
54- `CHSV` for HSV colors
55- `ColorFromPalette()` for palette-based colors
60leds[1] = CHSV(160, 255, 255); // Blue-green
61leds[2] = ColorFromPalette(RainbowColors_p, 64);
66Common animation techniques:
681. **Fading**: Use `fadeToBlackBy()` or `fadeLightBy()`
692. **Color cycling**: Modify HSV hue values
703. **Movement**: Shift array contents or use math functions
74- Call `FastLED.show()` only when needed
75- Use `FASTLED_DELAY()` instead of `delay()`
76- Consider using *fast math* functions for smoother animations)");
82 Serial.println(
"UIHelp Test Example");
83 Serial.println(
"==================");
93 Serial.println(
"UIHelp components created successfully!");
94 Serial.println(
"Check the web interface for rendered help documentation.");
99 static uint8_t
hue = 0;
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
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.)")
WS2812B controller class.
void fill_rainbow(struct CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5)
Fill a range of LEDs with a rainbow of colors.
@ GRB
Green, Red, Blue (0102)
Representation of an RGB pixel (Red, Green, Blue)