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 blinkers work with on and off only, RGB LEDs can’t be used with blinkers.
Reference
Setting | Description |
---|---|
Disabled | To disable or enable this block. |
Name | The name of this block. |
Red | Pin for red LED; D |
Green | Pin for green LED; D |
Blue | Pin for blue LED; D |
Comment | To optionally enter a comment. It does not impact the generated firmware. |