Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:reference:rgb [2017/10/30 11:28] – kniwwelino | en:reference:rgb [2018/01/23 13:06] (current) – kniwwelino | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== RGB LED ====== | ||
+ | |||
+ | ===== API ===== | ||
+ | |||
+ | ==== void RGBsetColor(String col) ==== | ||
+ | Set the RGB LED of the board to show the given color. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== void RGBsetColorEffect(String col, uint8_t effect, int count) ==== | ||
+ | Set the RGB LED of the board to show the given color and effect. | ||
+ | |||
+ | '' | ||
+ | effect = on of RGB_ON/ | ||
+ | count = how long shall the effect be shown. (10 = 1sec, -1 shows forever.)'' | ||
+ | |||
+ | |||
+ | ==== void RGBsetColor(uint32 color) ==== | ||
+ | Set the RGB LED of the board to show the given color. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== void RGBsetColorEffect(uint32 color, uint8_t effect, int count) ==== | ||
+ | Set the RGB LED of the board to show the given color. | ||
+ | |||
+ | '' | ||
+ | effect = on of RGB_ON/ | ||
+ | count = how long shall the effect be shown. (10 = 1sec, -1 shows forever.)'' | ||
+ | |||
+ | |||
+ | ==== void RGBsetColor(uint8_t red ,uint8_t green, uint8_t blue) ==== | ||
+ | Set the RGB LED of the board to show the given color | ||
+ | |||
+ | '' | ||
+ | green = GREEN color component (0-255)\\ | ||
+ | blue = BLUE color component (0-255)'' | ||
+ | |||
+ | |||
+ | ==== void RGBsetColorEffect(uint8_t red ,uint8_t green, uint8_t blue, uint8_t effect, int count) ==== | ||
+ | Set the RGB LED of the board to show the given color and effect. | ||
+ | |||
+ | '' | ||
+ | green = GREEN color component (0-255)\\ | ||
+ | blue = BLUE color component (0-255)\\ | ||
+ | effect = on of RGB_ON/ | ||
+ | count = how long shall the effect be shown. (10 = 1sec, -1 shows forever.)'' | ||
+ | |||
+ | |||
+ | ==== void RGBclear() ==== | ||
+ | Set the RGB LED of the board to be OFF | ||
+ | |||
+ | |||
+ | ==== void RGBsetBrightness(uint8_t b) ==== | ||
+ | Set the Brightness of the RGB LED of the board. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ===== Wiring ===== | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||