mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
60 lines
1.4 KiB
C
60 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2016 Freie Universität Berlin
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup sys_mineplex 5x5 Font 'Mineplex'
|
|
* @ingroup sys
|
|
* @brief The Mineplex font for containing 5x5 pixel ASCII characters
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Interface definition to access the Mineplex font
|
|
*
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef MINEPLEX_H
|
|
#define MINEPLEX_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief The width of a single character in pixel
|
|
*/
|
|
#define MINEPLEX_CHAR_W (5U)
|
|
|
|
/**
|
|
* @brief The height of a single character in pixel
|
|
*/
|
|
#define MINEPLEX_CHAR_H (5U)
|
|
|
|
/**
|
|
* @brief 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 1, bit 1 is the top left pixel of the encoded character.
|
|
*
|
|
* @param[in] c character to translate
|
|
*
|
|
* @return a 5 byte big buffer containing the encoded Mineplex character
|
|
*/
|
|
const uint8_t *mineplex_char(char c);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* MINEPLEX_H */
|
|
/** @} */
|