Jump to content

Component: LED Matrix (Parallel) (LEDs)

From Flowcode Help
Revision as of 14:37, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix Ltd
Version 1.0
Category LEDs


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. 
- VOID Return


DisplayString

DisplayString
Prints an ASCII string onto the LED Matrix a column at a time. 
- STRING Data
Data string to display on the LEDs 
- UINT Animation_Delay
Delay in milliseconds between writing to the next column 
- BYTE Leadout
Allows the text to scroll completely off the display before returning 0=No, 1=Yes 
- BYTE Add_Spaces
Add spaces between each ASCII character 0=No, 1=Yes 
- VOID Return


StrobeHigh

StrobeHigh
Sets the strobe pin high. Strobing controls the LED brightness and does not apply to simulation. 
- VOID Return


StrobeLow

StrobeLow
Sets the strobe pin low. Strobing controls the LED brightness and does not apply to simulation. 
- VOID Return


WriteColumn

WriteColumn
Allows a single column of data to be inserted, Acts to shift the rest of the columns across by one. 
- BYTE Data
Data to display on the column of LEDs 
- VOID Return


Property reference

Properties
LED Type
Active high outputs a logic 1 to set the LED and logic 0 to clear the LED. Active low outputs a logic 0 to set the LED and logic 1 to clear the LED 
Row Count
Number of LED rows 
Column Count
Number of LED columns 
LED Count
Total number of LEDs in the component 
Flip Display
Allows the column and text data sent to the display to be flipped 
Connections
D0
Data0 pin which is used to pass the input LED0 value 
D1
Data1 pin which is used to pass the input LED1 value 
D2
Data2 pin which is used to pass the input LED2 value 
D3
Data3 pin which is used to pass the input LED3 value 
D4
Data4 pin which is used to pass the input LED4 value 
D5
Data5 pin which is used to pass the input LED5 value 
D6
Data6 pin which is used to pass the input LED6 value 
D7
Data7 pin which is used to pass the input LED7 value 
Clock
Clock pin used to clock the external buffer IC's 
Strobe
Strobe pin used to control the master display state, strobed at high speed using PWM to set the brightness.  
Colours
On Color
Simulated colour of the LEDs when switched On 
Off Color
Simulated colour of the LEDs when switched Off 
Simulation
Row Spacing
Simulation row spacing 
Column Spacing
Simulation column spacing 
Width
Simulation LED width 
Height
Simulated LED height 
Depth
Simulated LED Depth (3D environments only) 
LED Shape
Simulated LED basic shape  
Redraw LEDs
Simulated LED redraw option, display will not be updated until the redraw is set to Yes. Automatically revers back to No after the refresh has been performed.