RGB (Red-Green-Blue) LED Data Sheet

Title

RGB (Red-Green-Blue) LED

TI Item Name

STEMEE/AC/LED/B

Description

Light-emitting diode with independently adjustable red, green and blue elements. Can produce a wide variety of colors..

Category

LEDs and Displays

Hub Connection

breadboard circuit

Assembly Instructions

Not Applicable

Precautions

Do not insert the leads of LEDs directly into the Hub’s Breadboard Connector. Assemble the components on the breadboard and use the provided jumper cables to connect the breadboard to the Hub.

Specifications

Not Applicable

 

HUB Commands

 

Sketch Object

RGB

Command Syntax

Send("SET RGB 1 TO r g b") - r = red value, g = green value, b = blue value

Send("SET RGB 1 TO r g b [[BLINK|TOGGLE] frequency] [[TIME] seconds]")

Code
Sample:

Desired Action

Code Sample

Configure LED

Send("SET RGB 1 ON ON OFF")

Send("SET RG 1 255 128 0")

Send("SET RGB 1 255 128 0 TIME 10")

Send("SET RGB 1 255 128 0 BLINK 20 TIME 10")

Send("SET RED 1 0")

Send("SET GREEN 1 128 BLINK 2 TIME 10")