Updated NeoPixelBusLg object API (markdown)

Michael Miller
2023-04-06 13:34:09 -07:00
parent 2ca41853c4
commit 3d47c65c28

@@ -64,4 +64,17 @@ This will clear all pixels from first to last to the given color. The color wil
> * _last_ - the index to the last pixel that will be cleared
### void ApplyPostAdjustments()
This will apply luminance and gamma adjustments to all existing stored pixel data; even if previously applied by calling SetPixelColor(). It is primarily used when the Pixels() method is used to directly access and set all pixel data into the memory buffer that will then need to be corrected.
This will apply luminance and gamma adjustments to all existing stored pixel data; even if previously applied by calling SetPixelColor(). It is primarily used when the Pixels() method is used to directly access and set all pixel data into the memory buffer that will then need to be corrected.
# Shader object
The class exposes an instanced object `Shader` that is a type of `LuminanceShader`. This allows external NeoDib buffers to render into the NeoPixelBusLg using the luminance and gamma correction already defined and used in the strip.
```
typedef NeoPixelBusLg<NeoGrbFeature, NeoWs2812xMethod> MyBusType;
MyBusType strip(PixelCount, PixelPin);
NeoDib<RgbColor> image(PixelCount);
...
image.Render<NeoGrbFeature, MyBusType::LuminanceShader>(strip, strip.Shader);
```