Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:programmingblocks:led [2018/05/24 14:32]
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 ===
 +{{:en:programmingblocks:led_1.png|}}
 +
 +This block sets the RGB LED to the specified color and effect.
 +
 +Options:
 +  * ''on'': RGB LED is continuously on.
 +  * ''blink'': RGB LED switches on and off in a regular way.
 +  * ''flash'': RGB LED switches on and off, with the on-status being very brief.
 +
 +\\
 +=== Switch the RGB LED off ===
 +{{:en:programmingblocks:led_2.png|}}
 +
 +This block switches the RGB LED off.
 +
 +\\
 +=== Custom color ===
 +{{:en:programmingblocks:led_3.png|}}
 +
 +This block allows to define a color using a color chart. Can be used as part of a ''Set RGB LED color'' block.
 +
 +\\
 +=== Set RBG LED color in hexadecimal format ===
 +{{:en:programmingblocks:led_4.png|}}
 +
 +This block sets the RGB LED color based on a text with a six-digit [[wp>Web_colors|hexadecimal number]]. 
 +
 +\\
 +=== Set RBG LED color from red, green and blue values ===
 +{{:en:programmingblocks:led_5.png|}}
 +
 +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 ===
 +{{:en:programmingblocks:led_9.png|}}
 +
 +Sets the effect of the RGB LED. 
 +
 +Options:
 +  * ''on'': RGB LED is continuously on.
 +  * ''blink'': RGB LED switches on and off in a regular way.
 +  * ''flash'': RGB LED switches on and off, with the on-status being very brief.
 +
 +\\
 +=== Set RBG LED brightness ===
 +{{:en:programmingblocks:led_6.png|}}
 +
 +Sets the brightness of the RGB LED. The range must be between 1 (dark) and 255 (bright). Default value is 255.
 +
 +\\
 +=== Set external LED ===
 +{{:en:programmingblocks:led_7.png|}}
 +
 +With this block, you can program LEDs which you have connected via the additional pins on the outer area. See [[en:extensions:extled|]] for more information on how to attach and use these.
 +
 +Options:
 +  * ''on'': External LED is continuously on.
 +  * ''blink'': External LED switches on and off in a regular way.
 +  * ''flash'': External LED switches on and off, with the on-status being very brief.
 +  * ''off'': External LED is continuously on.
 +
 +\\
 +==== 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.
 +
 +{{:en:programmingblocks:led_example.png|}}
  • en/programmingblocks/led.txt
  • Last modified: 2018/05/24 14:46
  • by kniwwelino