#include "board.h"
#include <stdint.h>
#include <assert.h>
Go to the source code of this file.
Functions | |
void | LCDD_DrawChar (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, uint8_t c, uint32_t color) |
Draws an ASCII character on LCD. | |
void | LCD_DrawString (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, const uint8_t *pString, uint32_t color) |
Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honoured. | |
Variables | |
const Font | gFont = {10, 14} |
Implementation of draw font on LCD.
Definition in file lcd_font.c.
void LCD_DrawString | ( | uint16_t * | pCanvasBuffer, | |
uint32_t | dwX, | |||
uint32_t | dwY, | |||
const uint8_t * | pString, | |||
uint32_t | color | |||
) |
Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honoured.
pCanvasBuffer | Pointer to dedicate canvas buffer. | |
dwX | X-coordinate of string top-left corner. | |
dwY | Y-coordinate of string top-left corner. | |
pString | String to display. |
Definition at line 97 of file lcd_font.c.
void LCDD_DrawChar | ( | uint16_t * | pCanvasBuffer, | |
uint32_t | x, | |||
uint32_t | y, | |||
uint8_t | c, | |||
uint32_t | color | |||
) |
Draws an ASCII character on LCD.
pCanvasBuffer | Pointer to dedicate canvas buffer. | |
x | X-coordinate of character upper-left corner. | |
y | Y-coordinate of character upper-left corner. | |
c | Character to output. | |
color | Character color. |
Definition at line 66 of file lcd_font.c.
Global variable describing the font being instantiated.
Definition at line 51 of file lcd_font.c.