Difference between revisions of "Component: SevenSeg ( Indicator)"

From Flowcode Help
Jump to navigationJump to search
Line 57: Line 57:
  
 
{{Fcfile|7segtest.fcfx|Web 7 Segment Display Example}}
 
{{Fcfile|7segtest.fcfx|Web 7 Segment Display Example}}
 +
 +
[https://https://www.flowcode.co.uk/wiki/WebDevExamples/7segtest.html Web 7 Segment Display Example]
  
 
==Macro reference==
 
==Macro reference==

Revision as of 09:08, 21 June 2024

Author MatrixTSL
Version 1.0
Category Indicator


SevenSeg component

A single 7 segment web component.

Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 20-06-24, ST, Created


Detailed description

No detailed description exists yet for this component

Examples

Example takes an inpt from a slider and outputs the number to a seven segment display. The display prints Err if the number is out of range.

FC6 Icon.png Web 7 Segment Display Example

Web 7 Segment Display Example

Macro reference

SetDigit

Fc9-comp-macro.png SetDigit
Sets the 7seg to display a digit (0-9) with an optional decimal point 
Fc9-s32-icon.png - LONG Digit
The digit to display (0-9) 
Fc9-bool-icon.png - BOOL ShowDP
Set true to show the decimal point 
Fc9-void-icon.png - VOID Return


SetOffColour

Fc9-comp-macro.png SetOffColour
Sets the 'off' colour of the segments 
Fc9-string-icon.png - STRING Colour
A string defining the colour (e.g. "maroon" or "#ff0099") 
Fc9-void-icon.png - VOID Return


SetOnColour

Fc9-comp-macro.png SetOnColour
Sets the 'on' colour of the segments 
Fc9-string-icon.png - STRING Colour
A string defining the colour (e.g. "maroon" or "#ff0099") 
Fc9-void-icon.png - VOID Return


SetRawValue

Fc9-comp-macro.png SetRawValue
Sets the raw byte value for the 7seg (0 - 255), allowing each segment to be individually set 
Fc9-s32-icon.png - LONG Value
The raw byte value for the display (0-255) 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Digit
Fc9-type-1-icon.png On colour
 
Fc9-type-1-icon.png Off colour
 
Fc9-conn-icon.png Background
Fc9-type-2-icon.png Back colour
Specifies the fill colour of the shape 
Fc9-type-21-icon.png Outline size
The outline size in pixels 
Fc9-type-2-icon.png Outline colour
The outline colour of the shape 
Fc9-type-18-icon.png Value
 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_WEBEXP_7SEG1.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_7SEG1.fcsx