User`s manual
OP710068
Software
• int glInit()
Initializes the LCD module (software and hardware).
RETURN VALUE: the status of the LCD. If the initialization was
successful, this function returns 0. Otherwise, the returned value
indicates the LCD status.
• int glPlotDot( int x, int y )
Plots one pixel on the screen at coordinate (x,y).
PARAMETERS: x is the x coordinate of the pixel to be drawn.
y is the y coordinate of the pixel to be drawn.
RETURN VALUE: Status of the LCD after the operation.
• void glPlotLine( int x1, int y1, int x2, int y2 )
Plots a line on the LCD.
PARAMETERS: x1 is the x coordinate of the first endpoint.
y1 is the y coordinate of the first endpoint.
x2 is the x coordinate of the second endpoint.
y2 is the y coordinate of the second endpoint.
• void glPrintf( int x, int y,
struct _fontInfo *pInfo, char *fmt,... )
Prints a formatted string (much like printf) on the LCD screen.
PARAMETERS: x is the x coordinate of the text (left edge).
y is the y coordinate of the text (top-edge).
*pInfo is the pointer to the font descriptor used for printing on the
LCD screen.
*fmt is the pointer to the format string
• void glPlotCircle( int xc, int yc, int rad )
Draws a circle on the LCD.
PARAMETERS: xc is the x coordinate of the center.
yc is the y coordinate of the center.
rad is the radius of the circle.
• void glFillCircle( int xc, int yc, int rad )
Draws a filled-in circle on the LCD.
PARAMETERS: xc is the x coordinate of the center.
yc is the y coordinate of the center.
rad is the radius of the circle.