source: npl/mediabox/lcdproc_edwin/src/server/drivers/hd44780.h @ f33f781

Last change on this file since f33f781 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.6 KB
Line 
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
29extern lcd_logical_driver *hd44780;
30
31int HD44780_init(struct lcd_logical_driver *driver, char *args);
32void HD44780_close();
33void HD44780_flush();
34void HD44780_flush_box(int lft, int top, int rgt, int bot);
35int HD44780_contrast(int contrast);
36void HD44780_backlight(int on);
37void HD44780_init_vbar();
38void HD44780_init_hbar();
39void HD44780_vbar(int x, int len);
40void HD44780_hbar(int x, int y, int len);
41void HD44780_init_num();
42void HD44780_num(int x, int num);
43void HD44780_set_char(int n, char *dat);
44void HD44780_icon(int which, char dest);
45void HD44780_draw_frame(char *dat);
46
47
48
49#endif
Note: See TracBrowser for help on using the repository browser.