Single characters can be drawn on the display with:
matrix.drawChar(char, Px, Py, colour)
where:
- char is a single-character long string
- Px and Py specify the pixel coordinate of the upper left corner of the character
- colour is a GlowBit colour value
Because matrix.drawChar() uses the MicroPython Viper code emitter all arguments are necessary when using the Raspberry Pi Pico. For example, to draw a white, lowercase, letter "a" on a single GlowBit Matrix 8x8 module:
import glowbit matrix = glowbit.matrix8x8() matrix.drawChar("a", 0, 0, matrix.white()) # Note inclusion of all arguments
The matrix.printTextWrap() function prints a string on a large display made from multiple GlowBit Matrix 8x8 modules. Each character requires an 8x8 pixel area, and scrolling is not intrinsically supported, so a detailed discussion of its use is left to the full documentation (TODO: Doxygen link).