Difference between revisions of "Component: LED Cube (Misc Circuit)"
From Flowcode Help
Jump to navigationJump to searchLine 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 63: | Line 65: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===Clear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 81: | Line 84: | ||
+ | ===RotateShellXZ=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 104: | Line 108: | ||
+ | ===RotateShellXY=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 127: | Line 132: | ||
+ | ===DrawLine=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 180: | Line 186: | ||
+ | ===RotateShellYZ=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 203: | Line 210: | ||
+ | ===RotateDisplay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 236: | Line 244: | ||
+ | ===PWMTimer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 249: | Line 258: | ||
+ | ===ConvRGBToColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 277: | Line 287: | ||
+ | ===ConvColourToRGB=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 295: | Line 306: | ||
+ | ===SetColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 328: | Line 340: | ||
+ | ===GetColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 356: | Line 369: | ||
+ | ===DrawCuboid=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 414: | Line 428: | ||
+ | ===DisplayCharacter=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 472: | Line 487: | ||
+ | ===ResetRotations=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 485: | Line 501: | ||
+ | ===SwitchBuffers=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 503: | Line 520: | ||
+ | ===ShiftDisplay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 541: | Line 559: | ||
+ | ===Initialise=== | ||
{| 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 | Ben Rowland 2014 |
Version | 1.0 |
Category | Misc Circuit |
Contents
LED Cube component
LED Cube component for driving 3D arrays of LEDs. A typical cube could consist of 4x4x4 or 8x8x8 but does not necessarily need to be a cuboid.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LEDCUBE.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LEDCUBE.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Clear
![]() |
Clear |
Clears the contents of the display to 0x0000 | |
![]() |
SwitchBuffers |
0=DoNotSwitch 1=SwitchAutomaticallyWhenDone | |
![]() |
Return |
RotateShellXZ
![]() |
RotateShellXZ |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
RotateShellXY
![]() |
RotateShellXY |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
DrawLine
![]() |
DrawLine |
Draws a basic 3D line onto the LEDs | |
![]() |
X1 |
![]() |
Y1 |
![]() |
Z1 |
![]() |
X2 |
![]() |
Y2 |
![]() |
Z2 |
![]() |
Colour |
![]() |
SwitchBuffers |
![]() |
Return |
RotateShellYZ
![]() |
RotateShellYZ |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
RotateDisplay
PWMTimer
ConvRGBToColour
![]() |
ConvRGBToColour |
Converts RGB values into a single UINT colour parameter to use with other functions. | |
![]() |
Red |
![]() |
Green |
![]() |
Blue |
![]() |
Return |
ConvColourToRGB
![]() |
ConvColourToRGB |
Reads the individual RGB colour values from a single UINT colour value. Return Index: 0=Red, 1=Green, 2=Blue | |
![]() |
Colour |
![]() |
Return |
SetColour
GetColour
![]() |
GetColour |
Reads the colour value from a single pixel in the active buffer as a 16-bit value. Bits 0-4 = Red Bits 5-10 = Green Bits 11-15 = Blue | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
DrawCuboid
DisplayCharacter
ResetRotations
![]() |
ResetRotations |
Resets the rotation count variables allowing for a new rotation to be started | |
![]() |
Return |
SwitchBuffers
ShiftDisplay
Initialise
![]() |
Initialise |
Sets up the data memory and draws the simulated LED cube on the panel. | |
![]() |
Return |