Component: LED MultiColour Bi (5mm, PCB) (LED)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.1
Category LED


LED MultiColour Bi (5mm, PCB) component

An industry standard 5mm diameter bi-colour LED. Any color may be chosen, and the leads trimmed to length.

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

A Bi Colour LED should be connected between two microcontroller I/O pins as shown below.

BiLED.jpg


The series resistor can be on either side of the LED and acts to protect the LED from damage due to excess current. The value of resistor used can be changed based on the brightness of the LED and power consumption.


This LED Calculator tool is a good resource for calculating the correct LED series protection resistor.

LED Resistor Calculator Tool






Macro reference

LEDOff

Fc9-comp-macro.png LEDOff
Switches off the LED 
Fc9-void-icon.png - VOID Return


LEDOneOn

Fc9-comp-macro.png LEDOneOn
Switches on LED one 
Fc9-void-icon.png - VOID Return


LEDSetState

Fc9-comp-macro.png LEDSetState
Controls the state of the LED. 0=Off 1=LED Colour 1 2=LED Colour 2 
Fc9-u8-icon.png - BYTE State
0=Off, 1=Pin1 High & Pin2 Low, 2=Pin1 Low & Pin2 High 
Fc9-void-icon.png - VOID Return


LEDTwoOn

Fc9-comp-macro.png LEDTwoOn
Switches on LED two 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png Pin
LED Pin 1 
Fc9-type-5-icon.png Pin2
LED Pin 2 
Fc9-conn-icon.png Simulation
Fc9-type-1-icon.png Color
The color of the LED when pin1 is turned on and pin2 is turned off. 
Fc9-type-1-icon.png Color2
The color of the LED when pin1 is turned off and pin2 is turned on. 
Fc9-type-15-icon.png Trim Leads
Trim the length of the two leads. Length cannot be less than 3.0, or greater than the length as supplied. 
Fc9-conn-icon.png Label
Fc9-type-1-icon.png Color
Color of the labels text. 
Fc9-type-15-icon.png Scale
Sets the basic size (text height) of the labels. 
Fc9-type-7-icon.png Follow Zoom
Whether labels get bigger and smaller when the panel is zoomed in and out.