lcd.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _GEL_LCD_H
00023 #define _GEL_LCD_H
00024
00025 #include <sys/param.h>
00026
00027 #ifndef LCD_MAX_COLS
00028 # define LCD_MAX_COLS 16
00029 #endif
00030
00031 #ifndef LCD_MAX_LINES
00032 # define LCD_MAX_LINES 2
00033 #endif
00034
00035
00037 typedef unsigned char lcd_col_t;
00038
00040 typedef unsigned char lcd_line_t;
00041
00045 extern void lcd_reset (void);
00046
00050 extern void lcd_home (void);
00051
00055 extern void lcd_clear (void);
00056
00057 extern void lcd_blink (int mode);
00058
00059 extern void lcd_cursor (int mode);
00060
00061 extern void lcd_display (int mode);
00062
00063 extern void lcd_shift (int direction);
00064
00071 extern void lcd_print (const char *msg);
00072
00073 extern void lcd_putchar (unsigned char c);
00074
00080 extern void lcd_goto (lcd_col_t col, lcd_line_t line);
00081
00087 extern void lcd_print_at (lcd_col_t col, lcd_line_t line, const char *msg);
00088
00089 #endif
|