mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-10 14:24:26 +02:00
Updated SevenSegDigit object API (markdown)
@@ -1,7 +1,18 @@
|
|||||||
SevenSegDigit represents a color object that is represented by A, B, C, D, E, F, G, decimal, and special component values; which represent the names of the segments of a seven segment display.
|
SevenSegDigit represents a color object that is represented by A, B, C, D, E, F, G, decimal, and special component values; which represent the names of the segments of a seven segment display.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
There is one property that represent the component values of the segments. The values in each location range from 0 to 255. Black or off would 0 and white or full on would be 255. The index can be addressed by [LedSegment enum](https://github.com/Makuna/NeoPixelBus/wiki/LedSegment-enum)`.
|
There is one property that represent the component values of the segments. The values in each location range from 0 to 255. Black or off would 0 and white or full on would be 255. The index can be addressed by the [enum LedSegment](## "enum LedSegment {
|
||||||
|
LedSegment_A,
|
||||||
|
LedSegment_B,
|
||||||
|
LedSegment_C,
|
||||||
|
LedSegment_D,
|
||||||
|
LedSegment_E,
|
||||||
|
LedSegment_F,
|
||||||
|
LedSegment_G,
|
||||||
|
LedSegment_Decimal, // maybe jumpered to alternate custom segment
|
||||||
|
LedSegment_Custom // generally not used but maybe connected to a custom segment
|
||||||
|
}").
|
||||||
|
|
||||||
```
|
```
|
||||||
uint8_t Segment[Count];
|
uint8_t Segment[Count];
|
||||||
```
|
```
|
||||||
@@ -91,3 +102,6 @@ The index operator allows accessing the segments with an index directly on the o
|
|||||||
```
|
```
|
||||||
uint8_t decimalBrightness = digit[LedSegment_Decimal];
|
uint8_t decimalBrightness = digit[LedSegment_Decimal];
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## references:
|
||||||
|
[enum LedSegment](https://github.com/Makuna/NeoPixelBus/wiki/LedSegment-enum).
|
Reference in New Issue
Block a user