From 3d47c65c28a949988bc39bea42bc54ae938246bb Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 6 Apr 2023 13:34:09 -0700 Subject: [PATCH] Updated NeoPixelBusLg object API (markdown) --- NeoPixelBusLg-object-API.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/NeoPixelBusLg-object-API.md b/NeoPixelBusLg-object-API.md index f06647a..6926052 100644 --- a/NeoPixelBusLg-object-API.md +++ b/NeoPixelBusLg-object-API.md @@ -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. \ No newline at end of file +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 MyBusType; +MyBusType strip(PixelCount, PixelPin); +NeoDib image(PixelCount); + +... + +image.Render(strip, strip.Shader); +``` \ No newline at end of file