On-Board RGB LED Data Sheet

Title

On-Board RGB LED

TI Item Name

Built into the Hub

Description

Built-in light-emitting diode (LED) that is capable of emitting a variety of colors when current passes through it.

Category

LEDs and Displays

Hub Connection

on-board Hub

Assembly Instructions

Not Applicable

Precautions

Not Applicable

Specifications

Not Applicable

 

HUB Commands

 

Sketch Object

COLOR

Command Syntax

Send("SET COLOR …")

   ON/OFF/0-255 (red element)

   ON/OFF/0-255 (green element)

   ON/OFF/0-255 (blue element)

   [BLINK frequency] (in Hz)

   [TIME duration] (in seconds)

Code
Sample:

Desired Action

Code Sample

Turn ON Red and Green elements of tri-color LED

Send("SET COLOR ON ON OFF")

Set Red to full intensity, Green to half intensity, Blue to off

Send("SET COLOR 255 128 0")

Set Red to full intensity, Green to half intensity, Blue to off for 10 seconds

Send("SET COLOR 255 128 0 TIME 10")

Set Red to full intensity, Green to half intensity, Blue to off and blink them at 2 Hz (2 times a second) for 10 seconds

Send("SET COLOR 255 128 0 BLINK 2 TIME 10")

Turn OFF the Red element

Send("SET COLOR.RED 0")

Turn ON the Green element at half intensity and blink it at 2 Hz for 10 seconds

Send("SET COLOR.GREEN 128 BLINK 2 TIME 10")