RGB LED
Properties
Property | Description |
---|---|
Disabled |
To disable or enable this block. |
Name |
The name of this block. |
Red |
Pin for red LED; D<number>. For example D9 |
Green |
Pin for green LED; D<number>. For example D11 |
Blue |
Pin for blue LED; D<number>. For example D10 |
Comment |
To optionally enter a comment. |
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 Blinker works with on and off only, RGB LEDs can’t be used with blinkers.