|
@ -95,8 +95,9 @@ void Led::setBrightness(uint8_t brightness) { |
|
|
if (brightness > 254) { // don't set first byte to 255 on tm1829
|
|
|
if (brightness > 254) { // don't set first byte to 255 on tm1829
|
|
|
FastLED.setBrightness(254); |
|
|
FastLED.setBrightness(254); |
|
|
} else { |
|
|
} else { |
|
|
uint8_t b = pow(((double)brightness/255.0), 4.2) * 255.0; |
|
|
// uint8_t b = pow(((double)brightness/255.0), 4.2) * 255.0;
|
|
|
FastLED.setBrightness(b); |
|
|
// FastLED.setBrightness(b);
|
|
|
|
|
|
FastLED.setBrightness(brightness); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|