Structs

Parameters to create a new matrix.

Runtime options to simplify doing common things for many programs such as dropping privileges and becoming a daemon.

Constants

Statics

Functions

Clear screen (black).

Fill matrix with given color.

Return size of canvas.

Set pixel at (x, y) with color (r,g,b).

Simple form of led_matrix_create_from_options() with just the few main options. Returns NULL if that was not possible. The “rows” are the number of rows supported by the display, so 32, 16 or 8.

Universal way to create and initialize a matrix. The “options” struct (if not NULL) contains all default configuration values chosen by the programmer to create the matrix.

The way to completely initialize your matrix without using command line flags to initialize some things.

Create a new canvas to be used with led_matrix_swap_on_vsync() Ownership of returned pointer stays with the matrix, don’t free().

Stop matrix and free memory. Always call before the end of the program to properly reset the hardware

Get active canvas from LED matrix for you to draw on. Ownership of returned pointer stays with the matrix, don’t free().

Print available LED matrix options.

Swap the given canvas (created with create_offscreen_canvas) with the currently active canvas on vsync (blocks until vsync is reached). Returns the previously active canvas. So with that, you can create double buffering:

Type Definitions

Unions