File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 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 */
5167const uint8_t * mineplex_char (char c );
5268
You can’t perform that action at this time.
0 commit comments