38#define STRIP_0_DATA_PIN 1
39#define STRIP_0_CLOCK_PIN 2
40#define STRIP_1_DATA_PIN 3
41#define STRIP_1_CLOCK_PIN 4
44CRGB leds_hd[NUM_LEDS] = {0};
45CRGB leds[NUM_LEDS] = {0};
66uint8_t wrap_8bit(
int i) {
78 for (
int i = 0; i < NUM_LEDS; i++) {
79 uint8_t brightness = map(i, 0, NUM_LEDS - 1, 0, 255);
80 CRGB c(brightness, brightness, brightness);
82 CRGB c_gamma_corrected = software_gamma(c);
83 leds[i] = c_gamma_corrected;
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
@ APA102
APA102 LED chipset.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
@ RGB
Red, Green, Blue (0012)
LIB8STATIC uint8_t dim8_raw(uint8_t x)
Adjust a scaling value for dimming.
Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
Representation of an RGB pixel (Red, Green, Blue)
uint8_t r
Red channel value.
uint8_t g
Green channel value.
uint8_t b
Blue channel value.