thinkyhead

M7219 - MAX7219 Control

debug Control Max7219 Segmented LEDs MAX7219_DEBUG

Description

Set the state of one or more Max7219 matrix displays or 7-segment digital displays.

Notes

Requires MAX7219_DEBUG.

Usage

M7219 [C<column>] [D<row>] [F] [I] [P] [R<row>] [U<index>] [V<bits>] [X<index>] [Y<index>]

Parameters

[C<column>]

Set the column specified by C to bit pattern V.

[D<row>]

Directly set a Max7219 native row (on the unit specified by U) to the 8-bit pattern V.

[F]

Fill the matrix by turning on all LEDs.

[I]

Initialize (clear) all matrixes.

[P]

Print the LED array state for debugging.

[R<row>]

Set the row specified by R to bit pattern V.

[U<index>]

Used with D to specify which matrix unit to set.

[V<bits>]

Value to apply when using the C, R, or X/Y parameters.

[X<index>]

Set a matrix LED at the given X position to the V value. If no V is given, toggle the LED state.

[Y<index>]

Set a matrix LED at the given Y position to the V value. If no V is given, toggle the LED state.

Related Media