116 uint32_t x = 0, y = 0;
118 uint32_t *PixelCount;
121 for (y = Font->
height; y > 0; y--) {
123 for (x = 0; x < Font->
width; x++) {
125 PixelCount = ptr + x * Font->
datasize;
126 if ((*PixelCount & (1 << (y - 1))) == 0) {
177 return LCD_VER_RESOLUTION / CurrentFont->
height;
189 CurrentFont->
height - 1, BackColor);
209 (
void *) (CurrentFont->
data
240 x += CurrentFont->
width;
258 else if (*ptr ==
'\r') {
261 else if (*ptr ==
'\t') {
267 else if (*ptr ==
'\b') {
297 length += CurrentFont->
width;
301 Line * CurrentFont->
height, ptr);
void LCD_SetFont(FONT_T *Font)
Sets the current font.
static LCDCOLOR BackColor
Color of the background.
void LCD_SetTextColor(LCDCOLOR Color)
Sets the Text color.
static void LCD_DrawChar(uint16_t Xpos, uint16_t Ypos, LCDCOLOR BackColor, LCDCOLOR TextColor, FONT_T *Font, void *ptr)
Draws a character on LCD.
void LCD_ClearLine(uint8_t Line)
Clears the selected line.
void LCD_DisplayStringLine(uint8_t Line, const char *ptr)
Displays a string on a line on the LCD. Position is set with a line number.
void LCD_DisplayCharLine(uint8_t Line, uint8_t Column, char Ascii)
Displays one character (16dots width, 24dots height) on the LCD. Position is set with a line and a co...
void LCD_DrawRectF(uint16_t Xpos, uint16_t Ypos, uint16_t width, uint16_t height, LCDCOLOR Color)
Displays a filled rectangle.
void LCD_DisplayCharXY(uint16_t x, uint16_t y, char Ascii)
Displays one character (16dots width, 24dots height) on the LCD. Position is set with a x- and a y-co...
uint8_t LCD_GetLineCount(void)
Gets the current count of possible lines.
void LCD_DisplayStringXY(uint16_t x, uint16_t y, const char *ptr)
Displays a string on the LCD. Position is set with the x- and y-coordinate.
static uint8_t count
Number of messages which are stored in LOG_Messages.
Simple graphic library main functionality.
#define LCD_HOR_RESOLUTION
void LCD_DisplayStringCenterLine(uint8_t Line, const char *ptr)
Displays a string on the LCD. Position is set at the y-coordinate on center of the display...
uint16_t LCDCOLOR
Data type for a color definition.
FONT_T * LCD_GetFont(void)
Gets the current font.
static void LCD_WriteArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t *pData)
Write an array of data to a specified area on the display.
This struct encapsulates the parameters of a font.
static LCDCOLOR TextColor
Color of the text.
static FONT_T * CurrentFont
Current font.
void LCD_SetBackColor(LCDCOLOR Color)
Sets the Background color.