mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 04:44:26 +02:00
Created NeoPixelSegmentBus object (markdown)
18
NeoPixelSegmentBus-object.md
Normal file
18
NeoPixelSegmentBus-object.md
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
See [NeoPixeBus object](https://github.com/Makuna/NeoPixelBus/wiki/NeoPixelBus-object) for more details on the general use of this object.
|
||||
See [NeoPixelSegmentBus object API Reference](https://github.com/Makuna/NeoPixelBus/wiki/NeoPixelSegmentBus-object-API) 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](https://github.com/Makuna/NeoPixelBus/wiki/SevenSegDigit-object-API) to define what is displayed on an individual seven-segment LED module.
|
||||
|
||||
Just like the normal NeoPixelObject, it must be constructed with a ["Feature"](https://github.com/Makuna/NeoPixelBus/wiki/NeoPixelBus-object#neo-features) and a ["Method"](https://github.com/Makuna/NeoPixelBus/wiki/NeoPixelBus-object#neo-methods) object that define which pixels you are using and how they are updated. One of the [Neo*SegmentFeatures](https://github.com/Makuna/NeoPixelBus/wiki/Neo-Features#neoabcdefgpssegmentfeature--sevensegmentfeature) 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);
|
||||
```
|
||||
|
||||
### [More on FEATUREs](https://github.com/Makuna/NeoPixelBus/wiki/T_COLOR_FEATURE)
|
||||
|
||||
### [More on METHODs](https://github.com/Makuna/NeoPixelBus/wiki/T_METHOD)
|
Reference in New Issue
Block a user