Contains representation of the fonts to be drawn on LCD display and methods that simplify the work with them.
More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
|
struct | LCD_font_t |
| Describes properties of the font to be drawn on LCD display. More...
|
|
|
bool | lcd_font_get_pixel (const LCD_font_t *const font, const char character, const uint16_t x, const uint16_t y, bool *const pixelOut) |
| Gets information about pixel existance in specific position of the font character. More...
|
|
Contains representation of the fonts to be drawn on LCD display and methods that simplify the work with them.
- Author
- Damian Ćlusarczyk
◆ LCD_FONT_BYTE_LINE
#define LCD_FONT_BYTE_LINE 8 |
Number of bits for single pixel map line of the font
◆ lcd_font_get_pixel()
bool lcd_font_get_pixel |
( |
const LCD_font_t *const |
font, |
|
|
const char |
character, |
|
|
const uint16_t |
x, |
|
|
const uint16_t |
y, |
|
|
bool *const |
pixelOut |
|
) |
| |
Gets information about pixel existance in specific position of the font character.
- Parameters
-
font | Pointer to the selected font |
character | Selected character of the font |
x | Position of the pixel in X-axis |
y | Position of the pixel in Y-axis |
pixelOut | Pointer to variable where information of the pixel existance will be stored (1 - pixel, 0 - no pixel) |
- Returns
- true Information about pixel existance has been stored successfully
-
false Invalid values of the function parameters