GLCD Library
A C Library for Embedded Applications
|
Functions relating to using text fonts of all sizes. More...
Functions | |
uint8_t | glcd_draw_char_xy (uint8_t x, uint8_t y, char c) |
Draw a char at specified location. More... | |
void | glcd_draw_string_xy (uint8_t x, uint8_t y, char *c) |
Draw a string at specified location. More... | |
void | glcd_draw_string_xy_P (uint8_t x, uint8_t y, const char *str) |
Draw a string from program memory at specified location. More... | |
void | glcd_set_font (const char *font_table, uint8_t width, uint8_t height, char start_char, char end_char) |
Set GLCD font to predefined font table. More... | |
Functions relating to using text fonts of all sizes.
uint8_t glcd_draw_char_xy | ( | uint8_t | x, |
uint8_t | y, | ||
char | c | ||
) |
Draw a char at specified location.
x | x location to place top-left of character frame |
y | y location to place top-left of character frame |
c | character to be drawn |
Definition at line 57 of file text.c.
Referenced by glcd_draw_string_xy(), and glcd_draw_string_xy_P().
void glcd_draw_string_xy | ( | uint8_t | x, |
uint8_t | y, | ||
char * | c | ||
) |
Draw a string at specified location.
x | x location to place top-left of character frame |
y | y location to place top-left of character frame |
c | pointer to string to be drawn |
Definition at line 145 of file text.c.
Referenced by glcd_test_counter_and_graph(), and glcd_test_text_up_down().
void glcd_draw_string_xy_P | ( | uint8_t | x, |
uint8_t | y, | ||
const char * | str | ||
) |
void glcd_set_font | ( | const char * | font_table, |
uint8_t | width, | ||
uint8_t | height, | ||
char | start_char, | ||
char | end_char | ||
) |
Set GLCD font to predefined font table.
Note it is very important the arguments are set accurately, otherwise it will not work properly.
font_table | pointer to font table to be used |
width | width of each character |
height | height of each character |
start_char | first character of font table |
end_char | last character of font table |
Definition at line 45 of file text.c.
Referenced by glcd_test_counter_and_graph(), and glcd_test_text_up_down().