Jump to content

Component: Analogue LED (Outputs)

From Flowcode Help
Revision as of 15:20, 20 January 2023 by Wiki bot (talk | contribs)
Author
Version 1.0
Category Outputs


Analogue LED component

An LED with variable brightness. Simulation Only. Brightness can be set either by macro call or by connection to an analogue pin.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Analogue_LED.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Analogue_LED.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Example Program showing how to show the temperature in Celsius and Fahrenheit and expected ADC pin voltage on an LCD. Analogue Sensors Example

Macro reference

SetBrightness
Set the brightness of the LED. 
- FLOAT Brightness
Brightness from 0.0 to 1.0 
[[File:]] - Return



Property reference

Properties
Connections
Analogue
Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. 
Color Range
On Color
LED color when at maximum brightness 
Off Color
LED color when at minimum brightness 
Auto Off
When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness. 
Minimum
Input value that gives the darkest LED color. 
Maximum
Input value that gives the brightest LED color. 
Shape
Target
A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen. 
Shape
Choose a shape for the LED. 
Width
Width of the LED shape. 
Height
Height of the LED shape. 
Depth
Depth of the LED shape. 

==Macro reference==

SetBrightness
Set the brightness of the LED. 
- FLOAT Brightness
Brightness from 0.0 to 1.0 
[[File:]] - Return



Property reference

Properties
Connections
Analogue
Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. 
Color Range
On Color
LED color when at maximum brightness 
Off Color
LED color when at minimum brightness 
Auto Off
When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness. 
Minimum
Input value that gives the darkest LED color. 
Maximum
Input value that gives the brightest LED color. 
Shape
Target
A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen. 
Shape
Choose a shape for the LED. 
Width
Width of the LED shape. 
Height
Height of the LED shape. 
Depth
Depth of the LED shape. 

==Macro reference==

SetBrightness
Set the brightness of the LED. 
- FLOAT Brightness
Brightness from 0.0 to 1.0 
[[File:]] - Return



Property reference

Properties
Connections
Analogue
Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. 
Color Range
On Color
LED color when at maximum brightness 
Off Color
LED color when at minimum brightness 
Auto Off
When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness. 
Minimum
Input value that gives the darkest LED color. 
Maximum
Input value that gives the brightest LED color. 
Shape
Target
A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen. 
Shape
Choose a shape for the LED. 
Width
Width of the LED shape. 
Height
Height of the LED shape. 
Depth
Depth of the LED shape.