Component: LED MultiColour Bi (5mm, PCB) (LED)
From Flowcode Help
(Redirected from Component: ID 67271369 4b2e 4126 a5d0 a93142ac71b9)
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 1.1 |
Category | LED |
Contents
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.
Downloadable macro reference
![]() |
LEDOff |
Switches off the LED | |
![]() |
Return |
![]() |
LEDSetState |
Controls the state of the LED. 0=Off 1=LED Colour 1 2=LED Colour 2 | |
![]() |
State |
0=Off, 1=Pin1 High & Pin2 Low, 2=Pin1 Low & Pin2 High | |
![]() |
Return |
![]() |
LEDOneOn |
Switches on LED one | |
![]() |
Return |
![]() |
LEDTwoOn |
Switches on LED two | |
![]() |
Return |