Difference between revisions of "Component: SevenSeg ( Indicator)"
From Flowcode Help
Jump to navigationJump to search| Line 56: | Line 56: | ||
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. | 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. | ||
| − | {{Fcfile|7segtest. | + | {{Fcfile|7segtest.fcsx|Web 7 Segment Display Example}} |
[https://www.flowcode.co.uk/wiki/WebDevExamples/7segtest.html Web 7 Segment Display Example] | [https://www.flowcode.co.uk/wiki/WebDevExamples/7segtest.html Web 7 Segment Display Example] | ||
Latest revision as of 09:10, 21 June 2024
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Indicator |
Contents
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.
Macro reference
SetDigit
| SetDigit | |
| Sets the 7seg to display a digit (0-9) with an optional decimal point | |
| Digit | |
| The digit to display (0-9) | |
| ShowDP | |
| Set true to show the decimal point | |
| Return | |
SetOffColour
| SetOffColour | |
| Sets the 'off' colour of the segments | |
| Colour | |
| A string defining the colour (e.g. "maroon" or "#ff0099") | |
| Return | |
SetOnColour
| SetOnColour | |
| Sets the 'on' colour of the segments | |
| Colour | |
| A string defining the colour (e.g. "maroon" or "#ff0099") | |
| Return | |
SetRawValue
| SetRawValue | |
| Sets the raw byte value for the 7seg (0 - 255), allowing each segment to be individually set | |
| Value | |
| The raw byte value for the display (0-255) | |
| Return | |
Property reference
| Properties | |
| Digit | |
| On colour | |
| Off colour | |
| Background | |
| Back colour | |
| Specifies the fill colour of the shape | |
| Outline size | |
| The outline size in pixels | |
| Outline colour | |
| The outline colour of the shape | |
| 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