Component: LED Cube (Misc Circuit): Difference between revisions
Appearance
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| Line 587: | Line 587: | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | LEDs | | width="90%" class="mtx-class-propfolder" | LEDs | ||
|- | |- | ||
| Line 636: | Line 636: | ||
| 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" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | Connections | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
| Line 655: | Line 655: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | Simulation | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
Latest revision as of 14:36, 13 July 2026
| Author | Ben Rowland 2014 |
| Version | 1.0 |
| Category | Misc Circuit |
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 | |
ConvColourToRGB
| ConvColourToRGB | |
| Reads the individual RGB colour values from a single UINT colour value. Return Index: 0=Red, 1=Green, 2=Blue | |
| Colour | |
| Return | |
ConvRGBToColour
| ConvRGBToColour | |
| Converts RGB values into a single UINT colour parameter to use with other functions. | |
| Red | |
| Green | |
| Blue | |
| Return | |
DisplayCharacter
DrawCuboid
DrawLine
| DrawLine | |
| Draws a basic 3D line onto the LEDs | |
| X1 | |
| Y1 | |
| Z1 | |
| X2 | |
| Y2 | |
| Z2 | |
| Colour | |
| SwitchBuffers | |
| Return | |
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 | |
Initialise
| Initialise | |
| Sets up the data memory and draws the simulated LED cube on the panel. | |
| Return | |
PWMTimer
ResetRotations
| ResetRotations | |
| Resets the rotation count variables allowing for a new rotation to be started | |
| Return | |
RotateDisplay
RotateShellXY
| RotateShellXY | |
| Shifts the contents of the display by the number of vertices specified | |
| Direction | |
| Shell | |
| Return | |
RotateShellXZ
| RotateShellXZ | |
| Shifts the contents of the display by the number of vertices specified | |
| Direction | |
| Shell | |
| Return | |
RotateShellYZ
| RotateShellYZ | |
| Shifts the contents of the display by the number of vertices specified | |
| Direction | |
| Shell | |
| Return | |
SetColour
ShiftDisplay
SwitchBuffers