Component: LED MultiColour Tri (5mm, PCB) (Outputs: LEDs)

From Flowcode Help
Revision as of 15:40, 27 July 2016 by BenR (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Author Matrix Ltd
Version 1.1 (Release)
Category Outputs: LEDs


Image LED MultiColour Tri (5mm, PCB) component

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

Examples

No additional examples


Downloadable macro reference

LEDOff

Switches off the LED

Parameters

This macro has no parameters


Return value

This call does not return a value


LEDThreeOn

Switches on LED three, other LEDs switched off.

Parameters

This macro has no parameters


Return value

This call does not return a value


LEDSetState

Controls the state of the LED.

0=Off / 1=LED Colour 1 / 2=LED Colour 2 / 3=LED Colour 1 + 2

4=LED Colour 3 / 5=LED Colour 1 + 3 / 6=LED Colour 2 + 3

7=LED Colour 1 + 2 + 3

Parameters

BYTE State
Range 0-7 0=All Off, 7 = All On


Return value

This call does not return a value


LEDOneOn

Switches on LED one, other LEDs switched off.

Parameters

This macro has no parameters


Return value

This call does not return a value


LEDTwoOn

Switches on LED two, other LEDs switched off.

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Pin

This property is of type Single digital pin and can be referenced with the variable name pin.

LED Pin 1

Pin2

This property is of type Single digital pin and can be referenced with the variable name pin2.

LED Pin 2

Pin3

This property is of type Single digital pin and can be referenced with the variable name pin3.

LED Pin 3

Polarity

This property is of type Fixed list of ints and can be referenced with the variable name polarity.

No additional information


Color

This property is of type Color picker and can be referenced with the variable name on_color.

The color of the LED when pin1 is turned on and pin2 is turned off.

Color2

This property is of type Color picker and can be referenced with the variable name on_colour2.

The color of the LED when pin1 is turned off and pin2 is turned on.

Color3

This property is of type Color picker and can be referenced with the variable name on_colour3.

The color of the LED when pin1 is turned off and pin2 is turned on.

Trim Leads

This property is of type Floating point and can be referenced with the variable name length.

Trim the length of the two leads.

Length cannot be less than 3.0, or greater than the length as supplied.

Color

This property is of type Color picker and can be referenced with the variable name label_color.

Color of the labels text.

Scale

This property is of type Floating point and can be referenced with the variable name label_scale.

Sets the basic size (text height) of the labels.

Follow Zoom

This property is of type True or false and can be referenced with the variable name label_auto_scale.

Whether labels get bigger and smaller when the panel is zoomed in and out.