Skip to content

Commit b2649e2

Browse files
authored
Merge pull request #21536 from crasbe/pr/mineplex_doc
sys/mineplex: Enhance Documentation
2 parents 79009a5 + ed8c91b commit b2649e2

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

sys/include/mineplex.h

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
* @defgroup sys_mineplex 5x5 Font 'Mineplex'
1313
* @ingroup sys
1414
* @brief The Mineplex font for containing 5x5 pixel ASCII characters
15+
*
16+
* The font has a character representation for all ASCII characters from
17+
* 0x20 (Space) to 0x7E (~).
18+
*
1519
* @{
1620
*
1721
* @file
@@ -42,11 +46,23 @@ extern "C" {
4246
* The function returns the pointer to a 5 byte pointer containing the Mineplex
4347
* representation of the given ASCII character. The Mineplex character is
4448
* encoded row wise from top to bottom using the least significant 5 bit, where
45-
* byte 1, bit 1 is the top left pixel of the encoded character.
49+
* byte 0, bit 0 is the top left pixel of the encoded character.
50+
* The character is therefore stored mirrored, as shown in the example below
51+
* for the character "F":
52+
*
53+
* ~~~~~~~~~~~~~~~~~
54+
* 0x0F = 0b00001111
55+
* 0x01 = 0b00000001
56+
* 0x07 = 0b00000111
57+
* 0x01 = 0b00000001
58+
* 0x01 = 0b00000001
59+
* ~~~~~~~~~~~~~~~~~
4660
*
4761
* @param[in] c character to translate
4862
*
49-
* @return a 5 byte big buffer containing the encoded Mineplex character
63+
* @return A pointer to the 5 byte sized character bitmap
64+
* @retval "Requested Char" For valid ASCII input characters
65+
* @retval "Space" For invalid input values
5066
*/
5167
const uint8_t *mineplex_char(char c);
5268

0 commit comments

Comments
 (0)