GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Standard Text

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...
 

Detailed Description

Functions relating to using text fonts of all sizes.

Function Documentation

uint8_t glcd_draw_char_xy ( uint8_t  x,
uint8_t  y,
char  c 
)

Draw a char at specified location.

Parameters
xx location to place top-left of character frame
yy location to place top-left of character frame
ccharacter to be drawn
Returns
width of character, 0 on error (e.g could not read font table)

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.

Parameters
xx location to place top-left of character frame
yy location to place top-left of character frame
cpointer 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 
)

Draw a string from program memory at specified location.

Parameters
xx location to place top-left of character frame
yy location to place top-left of character frame
strpointer to string in program memory to be drawn

Definition at line 165 of file text.c.

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.

Parameters
font_tablepointer to font table to be used
widthwidth of each character
heightheight of each character
start_charfirst character of font table
end_charlast 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().