Component: LED Charlieplex (Outputs: General)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd.
Version 1.4 (Release)
Category Outputs: General


Image LED Charlieplex component

Create an evenly spaced array of LED indicators using a reduced amount of I/O pins. Only one LED can be switched on at once, high speed multiplexing allows multiple LEDs to appear to be lit at once. Each will be connected in line with the standard charlieplex scheme. Set target object to point at any standard LED component to change the style.

Examples

No additional examples


Downloadable macro reference

LEDOn

Turn on the selected LED

Parameters

BYTE Index
Index of the LED to turn on starting from 1.


Return value

This call does not return a value


AllOff

Turns off all elements

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

GetHandle

Retrieves the object handle of the indexed clone.

Returns zero for out of range indexes.

Parameters

BYTE Index


Return value

HANDLE



Property reference

Pin Count

This property is of type Unsigned integer and can be referenced with the variable name pincount.

The number of pins to dedicate to the charlieplexed output.

LED Count

This property is of type Unsigned integer and can be referenced with the variable name ledcount.

The maximum number of LEDs that can be individually addressed based on the number of pins available.

LED 0

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

Chip pin connection for LED 0

LED 1

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

Chip pin connection for LED 1

LED 2

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

Chip pin connection for LED 2

Alignment

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

Which 3D axis to align the copies along.

Spacing

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

The distance between LEDs in the array.

LEDs will be spaced symmetrically around the component centre.

Use a negative value to reverse the order of the LEDs.

Reverse

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

Reverse the direction of the LEDs.

Target LED

This property is of type Panel object and can be referenced with the variable name target_object.

Drag any LED component based on the 'LED base' onto the panel and

select it here to use a custom LED design.

When unconnected, you can choose a default geometric form instead.

Shape

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

Shape for the LED when no target is selected.

Width

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

Width of the LED shape.

Height

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

Height of the LED shape.

Depth

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

Depth of the LED shape.

LED Colour

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

The colour for LED 0 - or for all LEDs if that option is set.

Show

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

Decide what labels to show...

None - no labels are displayed

Name - shows each component's name

Property - shows a particular property of each component (see 'property' below.

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.

Position

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

Set the position of the label relative to the component.