Difference between revisions of "Component: 7Segment (Single) (Segment)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
==Component Source Code==  | ==Component Source Code==  | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/  | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/LED_7Seg_Single.fcfx FC_Comp_Source_temp/LED_7Seg_Single.fcfx]  | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/  | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/LED_7Seg_Single.fcfx FC_Comp_Source_temp/LED_7Seg_Single.fcfx]  | 
==Detailed description==  | ==Detailed description==  | ||
| Line 56: | Line 56: | ||
''<span style="color:red;">No additional examples</span>''  | ''<span style="color:red;">No additional examples</span>''  | ||
| + | |||
| + | |||
| Line 77: | Line 79: | ||
| − | ===  | + | ===ShowDigit===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowDigit'''  | 
| + | |-  | ||
| + | | colspan="2" | Creates the supplied digit on the 7 segment display. Macro takes the digit to display and a boolean representing whether to display the decimal point segment or not.   | ||
| + | |-  | ||
|-  | |-  | ||
| − | |   | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | 
| + | | width="90%" | Digit  | ||
|-  | |-  | ||
| + | | colspan="2" | Sets the 7seg display with the appropriate digit supplied   | ||
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | DecimalPoint  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Determines whether decimal point LED is active (True/False)   | 
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
| Line 96: | Line 103: | ||
| − | ===  | + | ===ShowSegments===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowSegments'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Allows the individual segments of the display to be controlled.   | 
|-  | |-  | ||
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | Segments  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | 8-bit Binary value to set the segments, bit0 = segA, bit1 = segB...   | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
Revision as of 12:01, 3 February 2023
| Author | Matrix Ltd | 
| Version | 1.4 | 
| Category | Segment | 
Contents
7Segment (Single) component
Seven segment display modelled after a standard 14mm high unit. LED colour can be changed in properties.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/LED_7Seg_Single.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/LED_7Seg_Single.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ClearDigit
ShowDigit
ShowSegments
| ShowSegments | |
| Allows the individual segments of the display to be controlled. | |
| Segments | |
| 8-bit Binary value to set the segments, bit0 = segA, bit1 = segB... | |
| Return | |