Introduction

The Led Spectrum widget is a highly configurable widget that allows you to easily display a collection of Led Bar Gauge widgets in one widget.

How it works

The Led Spectrum widget displays the Led Bar Gauges with the specified number of bars inside the chosen rectangular area in any orientation.

Implementation

To select the Led Spectrum widget when using the Architect or Genius environments simply click on Graphics and then click on Add Widget.

Click on the Led Spectrum widget under the Led tab and click on Confirm.

The Led Spectrum will be placed on the graphic representation of the TIMI display with default properties set.

You can now change the Property Values to get the desired look of the Led Spectrum widget.

Left and Top Property

The Left and Top property can be changed by entering the value of a known Left and Top coordinate.

Or the Led Spectrum can be positioned by simply clicking on it and dragging it into the desired position. If the width or height of the Led Spectrum object is set to the maximum size of the display top or left dragging will not function.

Width and Height Property

The width and height properties can be changed by entering the value of a known width and Height in pixels.

Or the width and height can be simply changed by dragging the red dotted widget outline to the required size. Changing Width or Height will only have an effect on the length of the Bar Gauges. In Landscape mode, Height will be adjustable and in Portrait mode, Width will be adjustable. Width and Height changes will be automatically trimmed to suit the Bar Thickness and Bar Spacing set properties.

Range Property

The Led Spectrum can be set to any range from 0 to 1000.

Orientation Property

The Led Spectrum widgets Orientation can be Landscape or Portrait. In Landscape mode the Bar Gauges will be vertical. In Portrait mode the Bar Gauges are horizontal. The Orientation can be changed by selecting Landscape or Portrait property value.

Gauge Count Property

The Gauge Count property sets the amount of visible Bar Gauges in the spectrum.

Gauge Thickness Property

The Gauge thickness of the Individual Bar Gauges can be set by entering the thickness in Pixels as the property value. The Width of the Led Spectrum widget will be determined the by the Gauge Thickness multiplied by the Gauge Count and Gauge Spacing when in Landscape mode. In Portrait mode the height will be determined in the same manner.

Gauge Spacing Property

The space between the individual Bar Gauges can adjusted set by entering a pixel value as the property value.

Gap Mode Property

The area between the individual Bar Gauges can be set to be drawn in the same colour as the Colour set in the Base Color Property, Opaque or can be set as Transparent to only draw the Bar Gauges.

Bar Spacing Property

The Bar Spacing property sets how many pixels are used in between the segments of the individual Bar Gauges. By increasing the Bar Spacing a greater gap between segments can be set. Setting this property to zero will create a solid Bar Graph.

Bar Thickness Property

The Bar Thickness property sets a pixel width of the segments in the individual Bar Gauges. It may be necessary to adjust the Width or Height after altering the Bar Thickness.

Base Color Property

The background colour of the Led Spectrum widget can be altered by clicking on the property value and using the Colour Selector. If the Gap Mode property is set to Opaque the area between the individual Bar Gauges will be drawn in the Base colour.

Partition 1 and 2 Percentage Properties

The Bar Gauges can have defined percentages for the 3 coloured areas across the range. Only 2 percentages need to be defined with the last percentage being the remaining amount of the range.

If the Led Spectrum needs to be a single colour throughout its range then Partition 1 Percentage should be set to 100.

Partition 1, 2, 3 Inactive and Active Color Properties

Each defined partition has an Inactive colour and an Active colour. Generally, the Inactive colour is a darker shade of the Active colour. The Colours can be set by clicking on the property value and using the colour selector.

Fill Start Location Property

The Led Spectrum can be configured to operate in the opposite direction to the default setting. If in Landscape mode, choosing Top/Right as the property value will make the Led Spectrums Bar Gauges fill from top to bottom instead of Bottom to top if Bottom/Left is selected as the property value. In Portrait mode, choosing Top/Right will make the Led Spectrums Bar Gauges fill from right to left and left to right if Bottom/Left is selected.

The image above shows the Fill/Start property set Top/Right.

Demonstration

For this demonstration we will using 2 Media Panels and a Led Spectrum widget to make a simulated changing spectrum display

Add a Media Panel widget from the Static tab

and then set the properties as shown on the right.

Next, add another Media Panel widget and set the properties as shown on the right.

Finally, add a Led Spectrum widget from the Led Tab and set the properties as shown on the right.

If the Genius environment is being used the demonstration can be tested by entering simple code in the code window.

Or copy and paste the code below.

Copy to Clipboard

Ensure that the Port is set to the correct port that the TIMI module is connected to.

And then click on the Upload Button to Upload the entire project to the display.

When the Upload has completed you should see the Led Spectrum show random values.

Or the page can be used in the Commander environment by saving the Page and clicking in the Object Selector to choose Page0.

Then Click on Save Configuration.

A Save Dialogue Window will appear. Enter a filename (LedSpectrumDemo) then click on Save

You can find out further information about the Commander Environment in the ‘Getting Started with the Commander Environment’ tutorial.

Back to Resource Centre

Share this article on socials

Introduction

The Led Spectrum widget is a highly configurable widget that allows you to easily display a collection of Led Bar Gauge widgets in one widget.

How it works

The Led Spectrum widget displays the Led Bar Gauges with the specified number of bars inside the chosen rectangular area in any orientation.

Implementation

To select the Led Spectrum widget when using the Architect or Genius environments simply click on Graphics and then click on Add Widget.

Click on the Led Spectrum widget under the Led tab and click on Confirm.

The Led Spectrum will be placed on the graphic representation of the TIMI display with default properties set.

You can now change the Property Values to get the desired look of the Led Spectrum widget.

Left and Top Property

The Left and Top property can be changed by entering the value of a known Left and Top coordinate.

Or the Led Spectrum can be positioned by simply clicking on it and dragging it into the desired position. If the width or height of the Led Spectrum object is set to the maximum size of the display top or left dragging will not function.

Width and Height Property

The width and height properties can be changed by entering the value of a known width and Height in pixels.

Or the width and height can be simply changed by dragging the red dotted widget outline to the required size. Changing Width or Height will only have an effect on the length of the Bar Gauges. In Landscape mode, Height will be adjustable and in Portrait mode, Width will be adjustable. Width and Height changes will be automatically trimmed to suit the Bar Thickness and Bar Spacing set properties.

Range Property

The Led Spectrum can be set to any range from 0 to 1000.

Orientation Property

The Led Spectrum widgets Orientation can be Landscape or Portrait. In Landscape mode the Bar Gauges will be vertical. In Portrait mode the Bar Gauges are horizontal. The Orientation can be changed by selecting Landscape or Portrait property value.

Gauge Count Property

The Gauge Count property sets the amount of visible Bar Gauges in the spectrum.

Gauge Thickness Property

The Gauge thickness of the Individual Bar Gauges can be set by entering the thickness in Pixels as the property value. The Width of the Led Spectrum widget will be determined the by the Gauge Thickness multiplied by the Gauge Count and Gauge Spacing when in Landscape mode. In Portrait mode the height will be determined in the same manner.

Gauge Spacing Property

The space between the individual Bar Gauges can adjusted set by entering a pixel value as the property value.

Gap Mode Property

The area between the individual Bar Gauges can be set to be drawn in the same colour as the Colour set in the Base Color Property, Opaque or can be set as Transparent to only draw the Bar Gauges.

Bar Spacing Property

The Bar Spacing property sets how many pixels are used in between the segments of the individual Bar Gauges. By increasing the Bar Spacing a greater gap between segments can be set. Setting this property to zero will create a solid Bar Graph.

Bar Thickness Property

The Bar Thickness property sets a pixel width of the segments in the individual Bar Gauges. It may be necessary to adjust the Width or Height after altering the Bar Thickness.

Base Color Property

The background colour of the Led Spectrum widget can be altered by clicking on the property value and using the Colour Selector. If the Gap Mode property is set to Opaque the area between the individual Bar Gauges will be drawn in the Base colour.

Partition 1 and 2 Percentage Properties

The Bar Gauges can have defined percentages for the 3 coloured areas across the range. Only 2 percentages need to be defined with the last percentage being the remaining amount of the range.

If the Led Spectrum needs to be a single colour throughout its range then Partition 1 Percentage should be set to 100.

Partition 1, 2, 3 Inactive and Active Color Properties

Each defined partition has an Inactive colour and an Active colour. Generally, the Inactive colour is a darker shade of the Active colour. The Colours can be set by clicking on the property value and using the colour selector.

Fill Start Location Property

The Led Spectrum can be configured to operate in the opposite direction to the default setting. If in Landscape mode, choosing Top/Right as the property value will make the Led Spectrums Bar Gauges fill from top to bottom instead of Bottom to top if Bottom/Left is selected as the property value. In Portrait mode, choosing Top/Right will make the Led Spectrums Bar Gauges fill from right to left and left to right if Bottom/Left is selected.

The image above shows the Fill/Start property set Top/Right.

Demonstration

For this demonstration we will using 2 Media Panels and a Led Spectrum widget to make a simulated changing spectrum display

Add a Media Panel widget from the Static tab

and then set the properties as shown on the right.

Next, add another Media Panel widget and set the properties as shown on the right.

Finally, add a Led Spectrum widget from the Led Tab and set the properties as shown on the right.

If the Genius environment is being used the demonstration can be tested by entering simple code in the code window.

Or copy and paste the code below.

Copy to Clipboard

Ensure that the Port is set to the correct port that the TIMI module is connected to.

And then click on the Upload Button to Upload the entire project to the display.

When the Upload has completed you should see the Led Spectrum show random values.

Or the page can be used in the Commander environment by saving the Page and clicking in the Object Selector to choose Page0.

Then Click on Save Configuration.

A Save Dialogue Window will appear. Enter a filename (LedSpectrumDemo) then click on Save

You can find out further information about the Commander Environment in the ‘Getting Started with the Commander Environment’ tutorial.

Back to Resource Centre

Share this article on socials