4#define FASTLED_FIVE_BIT_HD_BITSHIFT_FUNCTION_OVERRIDE
13#define STRIP_0_DATA_PIN 1
14#define STRIP_0_CLOCK_PIN 2
15#define STRIP_1_DATA_PIN 3
16#define STRIP_1_CLOCK_PIN 4
18void five_bit_hd_gamma_bitshift(
CRGB colors,
20 uint8_t global_brightness,
22 uint8_t *out_power_5bit) {
24 *out_colors =
CRGB(0, 0, 0);
26 Serial.println(
"Override function called");
29CRGB leds_hd[NUM_LEDS] = {0};
42 for (
int i = 0; i < NUM_LEDS; i++) {
43 uint8_t brightness = map(i, 0, NUM_LEDS - 1, 0, 255);
44 CRGB c(brightness, brightness,
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.
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)
Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
Representation of an RGB pixel (Red, Green, Blue)