Loading...
Searching...
No Matches

BBC micro:bit specific LED handling. More...

Detailed Description

BBC micro:bit specific LED handling.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file microbit.h.

#include <stdint.h>
+ Include dependency graph for microbit.h:

Go to the source code of this file.

Macros

#define MICROBIT_MATRIX_ROWS   (5U)
 Number of rows of the LED matrix.
 
#define MICROBIT_MATRIX_COLS   (5U)
 Number of columns of the LED matrix.
 

Functions

void microbit_matrix_init (void)
 Initialize the micro:bit's LED matrix.
 
void microbit_matrix_on (uint8_t row, uint8_t col)
 Turn on a single LED in the LED matrix.
 
void microbit_matrix_off (uint8_t row, uint8_t col)
 Turn off a single LED in the LED matrix.
 
void microbit_matrix_set_raw (const uint8_t *buf)
 Write the given 'image' to the LED matrix.
 
void microbit_matrix_set_char (char c)
 Write the given character to the matrix, using the Mineplex font.
 
void microbit_matrix_shift_str (const char *str, uint32_t delay)
 Shift the given string through the LED matrix.