Skip to content

NeoPixelSegmentBus object

Michael Miller edited this page Apr 6, 2023 · 1 revision

See NeoPixeBus object for more details on the general use of this object.
See NeoPixelSegmentBus object API Reference for more details on the methods exposed.

This object is provided to wrap up the concept of using three WS2811 3-element LED driver chips to drive a seven-segment LED module.

This object differs from the normal NeoPixelBus by supporting several string drawing methods.

Instead of using the normal color objects like RgbColor, you will be using the SevenSegDigit to define what is displayed on an individual seven-segment LED module.

Just like the normal NeoPixelObject, it must be constructed with a "Feature" and a "Method" object that define which pixels you are using and how they are updated. One of the Neo*SegmentFeatures should be used as the T_FEATURE with this object to correctly function. Further, a WS2811 Method should be selected, although if your specific hardware uses another chip it will function with almost any Method.

NeoPixelBusLg<SevenSegmentFeature, NeoWs2811Method> strip(digitCount, pixelPin);
Clone this wiki locally