Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:programmingblocks:led [2018/02/22 13:22] – kniwwelino | en:programmingblocks:led [2018/05/24 14:46] (current) – kniwwelino | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== LED ===== | ||
| + | ==== Blocks ==== | ||
| + | |||
| + | === Set RGB LED to a color and an effect === | ||
| + | {{: | ||
| + | |||
| + | This block sets the RGB LED to the specified color and effect. | ||
| + | |||
| + | Options: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | \\ | ||
| + | === Switch the RGB LED off === | ||
| + | {{: | ||
| + | |||
| + | This block switches the RGB LED off. | ||
| + | |||
| + | \\ | ||
| + | === Custom color === | ||
| + | {{: | ||
| + | |||
| + | This block allows to define a color using a color chart. Can be used as part of a '' | ||
| + | |||
| + | \\ | ||
| + | === Set RBG LED color in hexadecimal format === | ||
| + | {{: | ||
| + | |||
| + | This block sets the RGB LED color based on a text with a six-digit [[wp> | ||
| + | |||
| + | \\ | ||
| + | === Set RBG LED color from red, green and blue values === | ||
| + | {{: | ||
| + | |||
| + | With this block, you can set an RGB color based on three individual values for red, green and blue. Each of the these values must be in the range between 0 (lack of the color) and 255 (very intense color). | ||
| + | |||
| + | \\ | ||
| + | === Set RBG LED effect === | ||
| + | {{: | ||
| + | |||
| + | Sets the effect of the RGB LED. | ||
| + | |||
| + | Options: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | \\ | ||
| + | === Set RBG LED brightness === | ||
| + | {{: | ||
| + | |||
| + | Sets the brightness of the RGB LED. The range must be between 1 (dark) and 255 (bright). Default value is 255. | ||
| + | |||
| + | \\ | ||
| + | === Set external LED === | ||
| + | {{: | ||
| + | |||
| + | With this block, you can program LEDs which you have connected via the additional pins on the outer area. See [[en: | ||
| + | |||
| + | Options: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | \\ | ||
| + | ==== Example ==== | ||
| + | This example sets the RGB LED to green and continuously on. When button A is pressed, the RGB LED blinks for 5 seconds, and then goes back again to continuously on. | ||
| + | |||
| + | {{: | ||