Browse Source

remove gamma correction for now

main
Hendrik Langer 7 years ago
parent
commit
9dfe379f3a
  1. 5
      src/led.cpp

5
src/led.cpp

@ -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);
} }
} }

Loading…
Cancel
Save