Difference between revisions of "Component: Analogue LED (Outputs)"

From Flowcode Help
Jump to navigationJump to search
 
(2 intermediate revisions by one other user not shown)
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/FC_Comp_Source_temp/Analogue_LED.fcfx FC_Comp_Source_temp/Analogue_LED.fcfx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Analogue_LED.fcfx FC_Comp_Source_Analogue_LED.fcfx]
  
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/Analogue_LED.fcfx FC_Comp_Source_temp/Analogue_LED.fcfx]
+
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Analogue_LED.fcfx FC_Comp_Source_Analogue_LED.fcfx]
  
 
==Detailed description==
 
==Detailed description==
Line 73: Line 73:
  
  
 
+
''<span style="color:red;">No additional examples</span>''
 
 
 
 
 
 
 
 
Example Program showing how to show the temperature in Celsius and Fahrenheit and expected ADC pin voltage on an LCD.
 
{{Fcfile|Analogue_Sensors_Example.fcfx|Analogue Sensors Example}}
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
==Macro reference==
 
==Macro reference==
Line 106: Line 94:
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
 
 
  
  

Latest revision as of 12:06, 24 July 2024

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

No additional examples

Macro reference

SetBrightness

Fc9-comp-macro.png SetBrightness
Set the brightness of the LED. 
Fc9-f32-icon.png - FLOAT Brightness
Brightness from 0.0 to 1.0 
[[File:]] - Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-6-icon.png Analogue
Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. 
Fc9-conn-icon.png Color Range
Fc9-type-1-icon.png On Color
LED color when at maximum brightness 
Fc9-type-1-icon.png Off Color
LED color when at minimum brightness 
Fc9-type-7-icon.png 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. 
Fc9-type-15-icon.png Minimum
Input value that gives the darkest LED color. 
Fc9-type-15-icon.png Maximum
Input value that gives the brightest LED color. 
Fc9-conn-icon.png Shape
Fc9-type-17-icon.png Target
A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen. 
Fc9-type-16-icon.png Shape
Choose a shape for the LED. 
Fc9-type-15-icon.png Width
Width of the LED shape. 
Fc9-type-15-icon.png Height
Height of the LED shape. 
Fc9-type-15-icon.png Depth
Depth of the LED shape.