00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00033 #ifndef __LCD_H__
00034 #define __LCD_H__
00035
00036 #include <sys/types.h>
00037 #include <68332/types.h>
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00051 int lcd_init (
00052 uint8 rows,
00053 uint8 columns,
00054 uint8 font,
00055 bool fourbitmode
00056 );
00057
00063 void lcd_display_enable (
00064 bool on
00065 );
00066
00073 void lcd_cursor (
00074 bool on,
00075 bool flashing
00076 );
00077
00081 void lcd_clear ();
00082
00086 void lcd_home ();
00087
00094 void lcd_gotoxy (
00095 uint8 x,
00096 uint8 y
00097 );
00098
00104 void lcd_printf (
00105 char *pszPattern,
00106 ...
00107 );
00108
00112 void lcd_write_string (
00113 char *string
00114 );
00115
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119
00120 #endif
00121