Difference between revisions of "Component: LED Cube (Misc Circuit)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Ben Rowland 2014 |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="colo...") |
|||
Line 15: | Line 15: | ||
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. | 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 | + | ==Component Source Code== |
− | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_LEDCUBE.fcfx FC_Comp_Source_LEDCUBE.fcfx] | |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 530: | Line 534: | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | LEDs | ||
|- | |- | ||
|- | |- | ||
Line 577: | Line 585: | ||
| colspan="2" | Number of micro seconds to wait between switching off the driver and clocking out the new signals. Used to remove any ghosting effects visible on the display due to slow driver switch off times. | | colspan="2" | Number of micro seconds to wait between switching off the driver and clocking out the new signals. Used to remove any ghosting effects visible on the display due to slow driver switch off times. | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections |
|- | |- | ||
|- | |- | ||
Line 596: | Line 604: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
|- | |- | ||
|- | |- |
Revision as of 17:48, 9 November 2022
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 for the component source code: FC_Comp_Source_LEDCUBE.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
Clear |
Clears the contents of the display to 0x0000 | |
![]() |
SwitchBuffers |
0=DoNotSwitch 1=SwitchAutomaticallyWhenDone | |
![]() |
Return |
![]() |
RotateShellXZ |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
![]() |
RotateShellXY |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
![]() |
DrawLine |
Draws a basic 3D line onto the LEDs | |
![]() |
X1 |
![]() |
Y1 |
![]() |
Z1 |
![]() |
X2 |
![]() |
Y2 |
![]() |
Z2 |
![]() |
Colour |
![]() |
SwitchBuffers |
![]() |
Return |
![]() |
RotateShellYZ |
Shifts the contents of the display by the number of vertices specified | |
![]() |
Direction |
![]() |
Shell |
![]() |
Return |
![]() |
ConvRGBToColour |
Converts RGB values into a single UINT colour parameter to use with other functions. | |
![]() |
Red |
![]() |
Green |
![]() |
Blue |
![]() |
Return |
![]() |
ConvColourToRGB |
Reads the individual RGB colour values from a single UINT colour value. Return Index: 0=Red, 1=Green, 2=Blue | |
![]() |
Colour |
![]() |
Return |
![]() |
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 |
![]() |
ResetRotations |
Resets the rotation count variables allowing for a new rotation to be started | |
![]() |
Return |
![]() |
Initialise |
Sets up the data memory and draws the simulated LED cube on the panel. | |
![]() |
Return |