|
WS2812_RMT Driver 0.1.0
API reference
|
The gamma 2.2 table of the WS2812_RMT driver, written by tools/gen_gamma.py. More...
#include <array>#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | ws2812_rmt |
The WS2812_RMT driver: everything it declares lives here; internals in detail. | |
Variables | |
| constexpr std::array< uint8_t, 256 > | ws2812_rmt::kGamma22 |
| The gamma 2.2 transfer curve for 8 bit values. | |
The gamma 2.2 table of the WS2812_RMT driver, written by tools/gen_gamma.py.
kGamma22[v] is round(255 * (v / 255) ^ 2.2) with halves rounded up. Gamma is not a feature of the pixels; it is a convenience, off by default (Gamma::None).