What problem does it solve?
Controlling addressable LED strips (like WS2812B) with microcontrollers can be complex, involving precise timing, color management, and effect generation. This Skill provides comprehensive documentation and best practices for the FastLED library, simplifying LED control, enabling stunning visual effects, and optimizing performance for your projects.
Core Features & Use Cases
- LED Control: Master the basics of setting up and controlling various addressable LED types.
- Color Management: Understand and apply different color spaces (RGB, HSV) for vibrant and smooth animations.
- Effect Generation: Learn how to create dynamic and engaging LED patterns with built-in functions and custom code.
- Use Case: Quickly get started with a new LED project, debug unexpected color behavior, or find optimized ways to render complex animations on your Arduino or ESP32.
Quick Start
Example: Basic FastLED setup
#include <FastLED.h>
#define NUM_LEDS 60
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
FastLED.setBrightness(50);
}
void loop() {
leds[0] = CRGB::Red;
FastLED.show();
delay(500);
leds[0] = CRGB::Black;
FastLED.show();
delay(500);
}