Difference between revisions of "Component: LED Cube (Misc Circuit)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LEDCUBE.fcfx FC_Comp_Source_LEDCUBE.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LEDCUBE.fcfx FC_Comp_Source_LEDCUBE.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 573: | Line 577: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:11, 7 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 | |
- BYTE | SwitchBuffers |
0=DoNotSwitch 1=SwitchAutomaticallyWhenDone | |
- VOID | Return |
ConvColourToRGB
ConvColourToRGB | |
Reads the individual RGB colour values from a single UINT colour value. Return Index: 0=Red, 1=Green, 2=Blue | |
- UINT | Colour |
- STRING | Return |
ConvRGBToColour
ConvRGBToColour | |
Converts RGB values into a single UINT colour parameter to use with other functions. | |
- BYTE | Red |
- BYTE | Green |
- BYTE | Blue |
- UINT | Return |
DisplayCharacter
DrawCuboid
DrawLine
DrawLine | |
Draws a basic 3D line onto the LEDs | |
- BYTE | X1 |
- BYTE | Y1 |
- BYTE | Z1 |
- BYTE | X2 |
- BYTE | Y2 |
- BYTE | Z2 |
- UINT | Colour |
- BYTE | SwitchBuffers |
- VOID | 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 | |
- BYTE | X |
- BYTE | Y |
- BYTE | Z |
- UINT | Return |
Initialise
Initialise | |
Sets up the data memory and draws the simulated LED cube on the panel. | |
- VOID | Return |
PWMTimer
ResetRotations
ResetRotations | |
Resets the rotation count variables allowing for a new rotation to be started | |
- VOID | Return |
RotateDisplay
RotateShellXY
RotateShellXY | |
Shifts the contents of the display by the number of vertices specified | |
- BYTE | Direction |
- BYTE | Shell |
- VOID | Return |
RotateShellXZ
RotateShellXZ | |
Shifts the contents of the display by the number of vertices specified | |
- BYTE | Direction |
- BYTE | Shell |
- VOID | Return |
RotateShellYZ
RotateShellYZ | |
Shifts the contents of the display by the number of vertices specified | |
- BYTE | Direction |
- BYTE | Shell |
- VOID | Return |
SetColour
ShiftDisplay
SwitchBuffers