SevenSeg
This object describes how to configure a seven-segment display primitive. See https://en.wikipedia.org/wiki/Seven-segment_display
Note: this model is in beta. Please contact us if you find any unusual behavior.
Note: stripped out extraSegment because it appears to be display only.
Example usage
flux.simulationModel = { type: "sevenSeg", baseSegmentCount: 7, diodeDirection: 0, map_a_to_terminal_uid: "your-terminal-element-uid", map_b_to_terminal_uid: "your-terminal-element-uid", map_c_to_terminal_uid: "your-terminal-element-uid", map_d_to_terminal_uid: "your-terminal-element-uid", map_e_to_terminal_uid: "your-terminal-element-uid", map_f_to_terminal_uid: "your-terminal-element-uid", map_g_to_terminal_uid: "your-terminal-element-uid"}Fields
| Name | Type | Default | Description | ||
|---|---|---|---|---|---|
type | "sevenSeg" | The type of this object, always the string literal "sevenSeg" | |||
baseSegmentCount | `7 | 14 | 16` | 7 | Base Segment Count |
diodeDirection | `0 | 1 | -1` | 0 |
1 = common cathode, -1 = common anode, 0 = no diodes |
| map_a_to_terminal_uid | string | | The terminal IDs. |
| map_b_to_terminal_uid | string | | |
| map_c_to_terminal_uid | string | | |
| map_d_to_terminal_uid | string | | |
| map_e_to_terminal_uid | string | | |
| map_f_to_terminal_uid | string | | |
| map_g_to_terminal_uid | string | | |