1 | /* Driver module for Hitachi HD44780 based Optrex DMC-20481 LCD display |
---|
2 | * The module is operated in it's 4 bit-mode to be connected to a single |
---|
3 | * 8 bit-port |
---|
4 | * |
---|
5 | * Copyright (c) 1998 Richard Rognlie GNU Public License |
---|
6 | * <rrognlie@gamerz.net> |
---|
7 | * |
---|
8 | * Large quantities of this code lifted (nearly verbatim) from |
---|
9 | * the lcd4.c module of lcdtext. Copyright (C) 1997 Matthias Prinke |
---|
10 | * <m.prinke@trashcan.mcnet.de> and covered by GNU's GPL. |
---|
11 | * In particular, this program is free software and comes WITHOUT |
---|
12 | * ANY WARRANTY. |
---|
13 | * |
---|
14 | * Matthias stole (er, adapted) the code from the package lcdtime by |
---|
15 | * Benjamin Tse (blt@mundil.cs.mu.oz.au), August/October 1995 |
---|
16 | * which uses the LCD-controller's 8 bit-mode. |
---|
17 | * References: port.h by <damianf@wpi.edu> |
---|
18 | * Data Sheet LTN211, Philips |
---|
19 | * Various FAQs and TXTs about Hitachi's LCD Controller HD44780 - |
---|
20 | * www.paranoia.com/~filipg is a good starting point ??? |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef HD44780_H |
---|
24 | #define HD44780_H |
---|
25 | |
---|
26 | #include "port.h" |
---|
27 | |
---|
28 | |
---|
29 | extern lcd_logical_driver *hd44780; |
---|
30 | |
---|
31 | int HD44780_init(struct lcd_logical_driver *driver, char *args); |
---|
32 | void HD44780_close(); |
---|
33 | void HD44780_flush(); |
---|
34 | void HD44780_flush_box(int lft, int top, int rgt, int bot); |
---|
35 | int HD44780_contrast(int contrast); |
---|
36 | void HD44780_backlight(int on); |
---|
37 | void HD44780_init_vbar(); |
---|
38 | void HD44780_init_hbar(); |
---|
39 | void HD44780_vbar(int x, int len); |
---|
40 | void HD44780_hbar(int x, int y, int len); |
---|
41 | void HD44780_init_num(); |
---|
42 | void HD44780_num(int x, int num); |
---|
43 | void HD44780_set_char(int n, char *dat); |
---|
44 | void HD44780_icon(int which, char dest); |
---|
45 | void HD44780_draw_frame(char *dat); |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | #endif |
---|