主要内容

12x8 LED Matrix

Display custom LED patterns on 12x8 LED matrix on Arduino Uno R4 Wi-Fi board

Since R2026a

  • Arduino 12x8 LED Matrix

Libraries:
Simulink Support Package for Arduino Hardware / Common

Description

Use the 12x8 LED Matrix block to control the built-in 12-by-8 LED matrix (96 LEDs arranged in 12 columns and 8 rows) on the Arduino® Uno R4 Wi-Fi® board.

Use one of the following input methods to illuminate the LEDs.

  • 12x8 Matrix block — Use the check boxes on this block to generate a binary matrix of LED pattern. Input this matrix to the 12x8 LED Matrix block to flash the selected LEDs on the Arduino Uno R4 Wi-Fi board.

  • Vector of LED positions — Use an input vector specifying LED positions you want to illuminate, ranging from 1 to 96. For example, use the vector [1 2 94 96] to illuminate LEDs positioned at indices 1, 3, 94, and 96. Indices outside this range are ignored.

  • 96-bit frame vector — Use an input vector of three uint32 values representing the 96-bit LED matrix. For example, use the vector [0x3184a444 0x44042081 0x100a0040] where each bit corresponds to the on/off state of an individual LED.

Supported Arduino Board

  • Arduino Uno R4 Wi-Fi

Ports

Input

expand all

The port accepts a 12-by-8 matrix whose elements are typically either 0 or 1. When the element value is greater than 0, the corresponding LED turns on. Otherwise, it turns off.

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

Version History

Introduced in R2026a

See Also