Lightbar (TSC-G3 Series)
Use the Lightbar component to set the color of the two LED lightbars (left and right side) on TSC-70-G3 and TSC-101-G3 touch screen controllers.
Each lightbar consists of four 24-bit high-brightness RGB LED elements. You can set all LEDs to be the same color (both the left side and right side lightbars) or set each LED individually.
To configure the lightbars:
-
Drag the Lightbar component into the schematic workspace.
-
Click the Lightbar component to display its Properties pane, and then set the Light Bar Drive Mode. See Properties for more information.
-
Save and run the design to the Core.
-
Double-click the Lightbar component to open its control panel.
-
Select a Color for all LEDs or individual LEDs, depending on the Light Bar Drive Mode.
Tip: Alternatively, you can send a hex value or text value ("red", "white", "blue", etc.) to the Lightbar's input Color control pin. The Color Picker component, available from the Control Components category, provides an easy way to visually select a desired color and output its corresponding hex value to the Lightbar component.
Example 1: Setting the color for all LEDs
In this example, Lightbar is configured to display the same color on both the left and right side LED bars. (The Light Bar Drive Mode is set to "One color for all LEDs".) The Color control pin is exposed, and receives the color chosen via the Color Picker component.
Example 2: Setting the color for each LED
In this example two Selector components are used to send different "status" colors to each side's LED lightbar. (The Light Bar Drive Mode is set to "Set color for each LED".)
These properties are specific to the Lightbar component for the TSC-70-G3 or TSC-101-G3 touch screen controllers. Other TSC touch screen property definitions can be found in the Status/Control (Touch Screen) topic.
Light Bar Drive Mode
Select what LEDs are affected by the color selection:
-
One color for all LEDs: The color selection is applied to both the right and left LED lightbars. All LEDs are the same color.
-
Set color for each LED: You can select a color for each of the 8 LEDs. LEDs 1-4 are on the left side of the touch screen controller, while LEDs 5-8 are on the right side.
Hex Code
This is the hexadecimal code that corresponds to the selected color being output to the touch screen controller's light bars - either the same color for all LEDs or for individual LEDs, depending on the Light Bar Drive Mode. This control is read-only within the control panel, but is changeable when sending a hex code (or a color name) to the Color input control pin.
Color
The Color drop-down menu allows you to select from 17 common color names. Selecting a color name automatically updates the corresponding Hex Code control.
Pin Name |
Value |
String |
Position |
Pins Available |
---|---|---|---|---|
Color |
- |
#nnnnnn or color name (blue, green, etc.) |
- |
Input |
Hex Code |
- |
#nnnnnn |
- |
Output |