From 9dfe379f3a3a5d91c96c5aee80456eb2caa6e636 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 15 Feb 2018 16:26:58 +0100 Subject: [PATCH] remove gamma correction for now --- src/led.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/led.cpp b/src/led.cpp index 7e88799..5d15efe 100644 --- a/src/led.cpp +++ b/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 FastLED.setBrightness(254); } else { - uint8_t b = pow(((double)brightness/255.0), 4.2) * 255.0; - FastLED.setBrightness(b); +// uint8_t b = pow(((double)brightness/255.0), 4.2) * 255.0; +// FastLED.setBrightness(b); + FastLED.setBrightness(brightness); } }