Difference between revisions of "Component: LED Matrix (Parallel) (LEDs)"
(9 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LED_Matrix_Parrallel.fcfx FC_Comp_Source_LED_Matrix_Parrallel.fcfx] |
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LED_Matrix_Parrallel.fcfx FC_Comp_Source_LED_Matrix_Parrallel.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 26: | Line 40: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 46: | Line 72: | ||
[[File:LEDmatPan.jpg]] | [[File:LEDmatPan.jpg]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
+ | |||
+ | ===ClearLEDs=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearLEDs''' |
|- | |- | ||
− | | colspan="2" | Sets the | + | | colspan="2" | Sets all of the LEDs in the matrix to the off state. |
|- | |- | ||
|- | |- | ||
Line 74: | Line 98: | ||
+ | ===DisplayString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 107: | Line 132: | ||
+ | ===StrobeHigh=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StrobeHigh''' |
+ | |- | ||
+ | | colspan="2" | Sets the strobe pin high. Strobing controls the LED brightness and does not apply to simulation. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===StrobeLow=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StrobeLow''' | ||
|- | |- | ||
− | | colspan="2" | Sets | + | | colspan="2" | Sets the strobe pin low. Strobing controls the LED brightness and does not apply to simulation. |
|- | |- | ||
|- | |- | ||
Line 120: | Line 160: | ||
+ | ===WriteColumn=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 136: | Line 177: | ||
| 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 | Matrix Ltd |
Version | 1.0 |
Category | LEDs |
Contents
LED Matrix (Parallel) component
LED Matrix component designed to work using multiple data pins and a single clock pin. Each LED on the display can be controlled in a chain by setting the data appropriatley and then generating the appropriate amount of clock pulses.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LED_Matrix_Parrallel.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LED_Matrix_Parrallel.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Parallel LED matrix example schematic showing 16 LEDs connected using two octal buffer ICs. Data connections to the microcontroller are Data0-Data7, LED_EN, Reset and Clock.
Each clock pulse transfers the output state to the next LED so Data0 goes to LED R0D0 and LED R0D0 goes to LED R1D0 etc.
Example Program
ledmatrixp
Note. to allow the simulation to run smoothly ensure that the simulation speed is set to normal and you may also want to enable hardware acceleration using the Global Options.
Example Panel Display
Macro reference
ClearLEDs
![]() |
ClearLEDs |
Sets all of the LEDs in the matrix to the off state. | |
![]() |
Return |
DisplayString
StrobeHigh
![]() |
StrobeHigh |
Sets the strobe pin high. Strobing controls the LED brightness and does not apply to simulation. | |
![]() |
Return |
StrobeLow
![]() |
StrobeLow |
Sets the strobe pin low. Strobing controls the LED brightness and does not apply to simulation. | |
![]() |
Return |
WriteColumn
![]() |
WriteColumn |
Allows a single column of data to be inserted, Acts to shift the rest of the columns across by one. | |
![]() |
Data |
Data to display on the column of LEDs | |
![]() |
Return |