Main Page | Modules | Data Structures | File List | Data Fields | Globals

lcd.h File Reference

LCD driver functions for the MRM. More...

#include <sys/types.h>
#include <68332/types.h>

Go to the source code of this file.

Functions

int lcd_init (uint8 rows, uint8 columns, uint8 font, bool fourbitmode)
void lcd_display_enable (bool on)
void lcd_cursor (bool on, bool flashing)
void lcd_clear ()
void lcd_home ()
void lcd_gotoxy (uint8 x, uint8 y)
void lcd_printf (char *pszPattern,...)
void lcd_write_string (char *string)


Detailed Description

To use the functions defined in this file, include <68332/mrm/lcd.h> and link liblcd.a.

Function Documentation

int lcd_init uint8  rows,
uint8  columns,
uint8  font,
bool  fourbitmode
 

Initialize LCD display.

Parameters:
rows The number of lines the display has.
columns The number of horizontal characters the display has.
font Select the main (0) or alternate (1) font.
fourbitmode Set this TRUE if the LCD only supports 4-bit IO.

void lcd_display_enable bool  on  ) 
 

Turn the display on or off.

Parameters:
on Set to TRUE to turn the display on.

void lcd_cursor bool  on,
bool  flashing
 

Control the appearance of the cursor.

Parameters:
on Set to TRUE to make the cursor visible.
flashing Set to TRUE to make the cursor flash.

void lcd_clear  ) 
 

Clear the display.

void lcd_home  ) 
 

Home the cursor. The next character output will appear at 0,0

void lcd_gotoxy uint8  x,
uint8  y
 

Position the cursor.

Parameters:
x The row (zero-based).
y The column (zero-based).

void lcd_printf char *  pszPattern,
... 
 

Send output to the LCD at the current cursor location.

This function uses the same syntax as printf().

void lcd_write_string char *  string  ) 
 

Display a string on the LCD at the current cursor location.


Generated on Wed Sep 6 03:02:22 2006 for MotoRobots by doxygen 1.3.6