From 9215bab4341b6471e4329e31a1573be29da98602 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Saura Date: Mon, 29 Nov 2021 11:16:34 +0100 Subject: [PATCH] Added tip about gamma in Color Correction section (#742) --- components/light/rgb.rst | 3 +++ components/light/rgbw.rst | 4 ++++ components/light/rgbww.rst | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/components/light/rgb.rst b/components/light/rgb.rst index ef701a9c3..61bb69936 100644 --- a/components/light/rgb.rst +++ b/components/light/rgb.rst @@ -60,6 +60,9 @@ perceived intensity of different colors will generally vary. This can be done by max_power: 80% # Repeat for green and blue output +.. note:: + + Remember that ``gamma_correct`` is enabled by default (``γ=2.8``), and you may want take it into account for the calibration. For instance if you command a light to *50%* brightness and want it to be the new maximum: ``max_PWM_power = max_light_power^2.8 = 0.5^2.8 = 0.144``, then you would set ``max_power`` to *14.4%*. Configuration variables: ------------------------ diff --git a/components/light/rgbw.rst b/components/light/rgbw.rst index c83d3e55e..3383f8ff5 100644 --- a/components/light/rgbw.rst +++ b/components/light/rgbw.rst @@ -43,6 +43,10 @@ perceived intensity of different colors will generally vary. This can be done by pin: D1 max_power: 80% +.. note:: + + Remember that ``gamma_correct`` is enabled by default (``γ=2.8``), and you may want take it into account for the calibration. For instance if you command a light to *50%* brightness and want it to be the new maximum: ``max_PWM_power = max_light_power^2.8 = 0.5^2.8 = 0.144``, then you would set ``max_power`` to *14.4%*. + .. _rgbw_color_interlock: Color Interlock diff --git a/components/light/rgbww.rst b/components/light/rgbww.rst index e49adbd25..f40f2dfca 100644 --- a/components/light/rgbww.rst +++ b/components/light/rgbww.rst @@ -49,6 +49,10 @@ perceived intensity of different colors will generally vary. This can be done by pin: D1 max_power: 80% +.. note:: + + Remember that ``gamma_correct`` is enabled by default (``γ=2.8``), and you may want take it into account for the calibration. For instance if you command a light to *50%* brightness and want it to be the new maximum: ``max_PWM_power = max_light_power^2.8 = 0.5^2.8 = 0.144``, then you would set ``max_power`` to *14.4%*. + Color Interlock ---------------