The Mineplex font for containing 5x5 pixel ASCII characters.
More...
The Mineplex font for containing 5x5 pixel ASCII characters.
The font has a character representation for all ASCII characters from 0x20 (Space) to 0x7E (~).
|
| file | mineplex.h |
| | Interface definition to access the Mineplex font.
|
| |
|
| const uint8_t * | mineplex_char (char c) |
| | Get the Mineplex representation of a given ASCII character. More...
|
| |
◆ mineplex_char()
| const uint8_t* mineplex_char |
( |
char |
c | ) |
|
Get the Mineplex representation of a given ASCII character.
The function returns the pointer to a 5 byte pointer containing the Mineplex representation of the given ASCII character. The Mineplex character is encoded row wise from top to bottom using the least significant 5 bit, where byte 0, bit 0 is the top left pixel of the encoded character. The character is therefore stored mirrored, as shown in the example below for the character "F":
0x0F = 0b00001111
0x01 = 0b00000001
0x07 = 0b00000111
0x01 = 0b00000001
0x01 = 0b00000001
- Parameters
-
| [in] | c | character to translate |
- Returns
- A pointer to the 5 byte sized character bitmap
- Return values
-
| Requested Char | For valid ASCII input characters |
| Space | For invalid input values |