pub unsafe extern "C" fn led_matrix_create(
    rows: c_int,
    chained: c_int,
    parallel: c_int
) -> *mut RGBLedMatrix
Expand description

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.

Number of “chained_display“s tells many of these are daisy-chained together (output of one connected to input of next).

The “parallel_display” number determines if there is one or two displays connected in parallel to the GPIO port - this only works with newer Raspberry Pi that have 40 interface pins.

This creates a realtime thread and requires root access to access the GPIO pins. So if you run this in a daemon, this should be called after becoming a daemon (as fork/exec stops threads) and before dropping privileges.