Block:RGB LED
To use a RBG LED, specify the pins for each colour, and give it a name, for example 'rgb_led'.
Each colour can be set to intensity 0 (off), 25, 50, 75 or 100 (full on), in a logic block.
For example, a logic rule 'set_magenta':
rgb_led.red = 50; rgb_led.blue = 50;
Because RGB LEDs work with intensity settings from 0 to 100, and [Block:Blinker] works with on and off only, RGB LEDs can't be used with blinkers.
Infocard
Red/green/blue LED; specify 3 pins for each color LED Use (in logic):<blockname>.<color>=<percentage> For example:rgb.green=100 (full on), rgb.blue=50 (50% brightness)
Property | Description |
---|---|
Disabled | To disable or enable this block. |
Name | The name of this block. |
Red | Pin for red LED |
Green | Pin for green LED |
Blue | Pin for blue LED |
Comment | To optionally enter a comment. It does not impact the generated firmware. |