Module max_7219_led_matrix_util::encoding
source · [−]Expand description
Encoding utility functions that helps you to print symbols easily on a MAX7219-powered LED matrix.
Functions
Encodes a char to its bit-representation on a single display. This means a 8x8 bit matrix.
Currently only a very limited alphabet is available and only capital letters. Unknown chars
are mapped to SPACE (empty).
Encodes each char of a string to its bit-representation. The resulting vector should be understood
as the data to be displayed on a display chain that is as long as the coupled/chained displays
that are powered by the MAX7219.
So if you have 4 displays and 10 chars then you could only display indices zero to three and
bit shift all rows one to the left per iteration. This way you get a smooth transition/animation.
Don’t forget about the sleep-timeout per iteration!