mini.h

Calliope mini specific LED handling.

MINI_MATRIX_ROWS

Number of rows of the LED matrix.

1
(5U)
MINI_MATRIX_COLS

Number of columns of the LED matrix.

1
(5U)
void mini_matrix_init(void)

Initialize the Calliope mini’s LED matrix.

void mini_matrix_on(uint8_t row, uint8_t col)

Turn on a single LED in the LED matrix.

Parameters

row:row of the LED
col:column of the LED

void mini_matrix_off(uint8_t row, uint8_t col)

Turn off a single LED in the LED matrix.

Parameters

row:row of the LED
col:column of the LED

void mini_matrix_set_raw(const uint8_t * buf)

Write the given ‘image’ to the LED matrix.

In the given buffer, each byte represents one LED in the matrix, hence the buffer MUST be at least 25 byte wide. A byte value of 0 turns an LED off, while any other value turns it on.

Parameters

buf:new data to display, MUST be at least 25 byte

void mini_matrix_set_char(char c)

Write the given character to the matrix, using the Mineplex font.

Parameters

c:character to display

void mini_matrix_shift_str(const char * str, uint32_t delay)

Shift the given string through the LED matrix.

Parameters

str:string do display
delay:delay between each step [in us]