Difference between revisions of "Component: RGB LED SK6812 RGBW (LEDs)"
Line 93: | Line 93: | ||
[http://led.linear1.org/1led.wiz LED Resistor Calculator Tool] | [http://led.linear1.org/1led.wiz LED Resistor Calculator Tool] | ||
+ | |||
+ | |||
Line 98: | Line 100: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===SetBrightness=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 116: | Line 119: | ||
+ | ===GetLEDColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 139: | Line 143: | ||
+ | ===OutputLow=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 152: | Line 157: | ||
+ | ===SetBrightnessByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 170: | Line 176: | ||
+ | ===Delay_T0L=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 183: | Line 190: | ||
+ | ===DrawLine2D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 236: | Line 244: | ||
+ | ===OutputHigh=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 249: | Line 258: | ||
+ | ===SetLEDColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 287: | Line 297: | ||
+ | ===SetAllLEDColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 320: | Line 331: | ||
+ | ===Delay_T0H=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 333: | Line 345: | ||
+ | ===Delay_T1L=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 346: | Line 359: | ||
+ | ===Refresh=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 359: | Line 373: | ||
+ | ===ShiftLEDs1D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 382: | Line 397: | ||
+ | ===DrawLine3D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 445: | Line 461: | ||
+ | ===Delay_T1H=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 458: | Line 475: | ||
+ | ===GetLEDIndex2D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 481: | Line 499: | ||
+ | ===DrawRectangle2D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 539: | Line 558: | ||
+ | ===ShiftLEDs2D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 567: | Line 587: | ||
+ | ===GetLEDIndex3D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 595: | Line 616: | ||
+ | ===DrawCuboid3D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 663: | Line 685: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 676: | Line 699: | ||
+ | ===ShiftLEDs3D=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:51, 3 February 2023
Author | Matrix TSL |
Version | 1.5 |
Category | LEDs |
Contents
- 1 RGB LED SK6812 RGBW component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 SetBrightness
- 5.2 GetLEDColour
- 5.3 OutputLow
- 5.4 SetBrightnessByte
- 5.5 Delay_T0L
- 5.6 DrawLine2D
- 5.7 OutputHigh
- 5.8 SetLEDColour
- 5.9 SetAllLEDColour
- 5.10 Delay_T0H
- 5.11 Delay_T1L
- 5.12 Refresh
- 5.13 ShiftLEDs1D
- 5.14 DrawLine3D
- 5.15 Delay_T1H
- 5.16 GetLEDIndex2D
- 5.17 DrawRectangle2D
- 5.18 ShiftLEDs2D
- 5.19 GetLEDIndex3D
- 5.20 DrawCuboid3D
- 5.21 Initialise
- 5.22 ShiftLEDs3D
- 6 Property reference
RGB LED SK6812 RGBW component
A simple chained RGBW LED controller IC allowing multiple LEDs to be controlled using a serial data stream. Compatible with the SK6812 RGBW Type Controller ICs. Allows RGBW LEDs to be driven with full 24-bit colour depth plus 8-bit white channel. Allows single chains, 2D arrays and 3D cube formations to be simulated. Requires a high speed microcontroller to generate the critical timings to drive the device.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LED_SK6812RGBW.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LED_SK6812RGBW.fcfx
Detailed description
No detailed description exists yet for this component
Examples
LEDs can be wired either active high or active low. The LED components should each have a property allowing you to configure which LED type your using.
An active high LED will light when the microcontroller pin is outputting a logic 1 and be off when the microcontroller pin is outputting a logic 0 or in input mode.
An active low LED will light when the microcontroller pin is outputting a logic 0 and be off when the microcontroller pin is outputting a logic 1 or in input mode.
The series resistor can be on either side of the LED and acts to protect the LED from damage due to excess current. The value of resistor used can be changed based on the brightness of the LED and power consumption.
This LED Calculator tool is a good resource for calculating the correct LED series protection resistor.
Macro reference
SetBrightness
GetLEDColour
OutputLow
![]() |
OutputLow |
![]() |
Return |
SetBrightnessByte
Delay_T0L
![]() |
Delay_T0L |
![]() |
Return |
DrawLine2D
OutputHigh
![]() |
OutputHigh |
![]() |
Return |
SetLEDColour
SetAllLEDColour
![]() |
SetAllLEDColour |
Sets the colour of all the LEDs in RAM | |
![]() |
R |
Red Colour Channel | |
![]() |
G |
Green Colour Channel | |
![]() |
B |
Blue Colour Channel | |
![]() |
W |
White colour channel | |
![]() |
Return |
Delay_T0H
![]() |
Delay_T0H |
![]() |
Return |
Delay_T1L
![]() |
Delay_T1L |
![]() |
Return |
Refresh
![]() |
Refresh |
Clocks out the current colour data to the LEDs from the values stored in RAM | |
![]() |
Return |
ShiftLEDs1D
![]() |
ShiftLEDs1D |
Shifts the LED colours in 1D and wraps | |
![]() |
Direction |
0 = Forwards, 1 = Backwards | |
![]() |
DataMode |
0=ResetToZero, 1=WrapAroundDisplay, 2=Smear | |
![]() |
Return |
DrawLine3D
Delay_T1H
![]() |
Delay_T1H |
![]() |
Return |
GetLEDIndex2D
DrawRectangle2D
ShiftLEDs2D
GetLEDIndex3D
DrawCuboid3D
Initialise
![]() |
Initialise |
Inisialises the RGB colour RAM to 0,0,0 = LED Off and clocks out the data to initialise all the LED ICs in the chain. | |
![]() |
Return |
ShiftLEDs3D