Jump to content

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

From Flowcode Help
Revision as of 16:31, 7 January 2022 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 Pack

BASICIO

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.


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

Downloadable macro reference

LEDOff
Switches off the LED 
- VOID Return


LEDSetState
Controls the state of the LED. 0=Off 1=LED Colour 1 2=LED Colour 2 
- BYTE State
0=Off, 1=Pin1 High & Pin2 Low, 2=Pin1 Low & Pin2 High 
- VOID Return


LEDOneOn
Switches on LED one 
- VOID Return


LEDTwoOn
Switches on LED two 
- VOID Return



Property reference

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