Main Content

12x8 Matrix

Graphically create a 12x8 binary matrix to define LED patterns for display

Since R2026a

  • Arduino 12x8 Matrix

Libraries:
Simulink Support Package for Arduino Hardware / Common

Description

Use the 12x8 Matrix block to provide a graphical interface for specifying LED patterns for Arduino® boards. Double-click the block to use the grid of check boxes arranged in 12 columns and 8 rows, where each check box corresponds to an individual LED on the Arduino board. Select check box to set the corresponding matrix element to 1 (LED ON) and clear the check box to set the element to 0 (LED OFF).

LED ON and LED OFF illustration

Ports

Output

expand all

The port provides a 12-coumn by 8-row binary matrix, where each element represents the state of the corresponding LED (1 indicates ON and 0 indicates OFF). Connect the output directly to the input of the 12x8 LED Matrix block to display the selected pattern on the LED matrix of Arduino board.

Data Types: int8 | uint8 | int16 | uint16 | int32 | uint32 | single | double

Parameters

expand all

Click the button to deselect all check boxes in the block and clear any existing LED pattern.

Version History

Introduced in R2026a