diff --git a/src/PeripheryManager.cpp b/src/PeripheryManager.cpp index 7d85cf0f..da89987a 100644 --- a/src/PeripheryManager.cpp +++ b/src/PeripheryManager.cpp @@ -492,6 +492,7 @@ void PeripheryManager_::tick() if (AUTO_BRIGHTNESS && !MATRIX_OFF) { brightnessPercent = sampleAverage / 1023.0 * 100.0; + brightnessPercent = (brightnessPercent * brightnessPercent * brightnessPercent) / (100.0 * 100.0); // apply gamma correction (gamma = 3) BRIGHTNESS = map(brightnessPercent, 0, 100, MIN_BRIGHTNESS, MAX_BRIGHTNESS); DisplayManager.setBrightness(BRIGHTNESS); }