Modifications for a portable and maintable HD44780 lcd driver
This commit is contained in:
@@ -2,7 +2,13 @@ noinst_LIBRARIES = libLCDdrivers.a
|
|||||||
libLCDdrivers_a_SOURCES = lcd.c lcd.h drv_base.c
|
libLCDdrivers_a_SOURCES = lcd.c lcd.h drv_base.c
|
||||||
EXTRA_libLCDdrivers_a_SOURCES = MtxOrb.c MtxOrb.h text.c text.h \
|
EXTRA_libLCDdrivers_a_SOURCES = MtxOrb.c MtxOrb.h text.c text.h \
|
||||||
curses_drv.c curses_drv.h drv_base.c drv_base.h \
|
curses_drv.c curses_drv.h drv_base.c drv_base.h \
|
||||||
hd44780.c hd44780.h port.h joy.c joy.h irmanin.c irmanin.h \
|
hd44780.c hd44780.h \
|
||||||
|
hd44780-4bit.c hd44780-4bit.h \
|
||||||
|
hd44780-ext8bit.c hd44780-ext8bit.h lcd_sem.c lcd_sem.h \
|
||||||
|
hd44780-serialLpt.c hd44780-serialLpt.h \
|
||||||
|
hd44780-winamp.c hd44780-winamp.h \
|
||||||
|
hd44780-low.h hd44780-drivers.h \
|
||||||
|
port.h joy.c joy.h irmanin.c irmanin.h \
|
||||||
CFontz.c CFontz.h lircin.c lircin.h debug.h
|
CFontz.c CFontz.h lircin.c lircin.h debug.h
|
||||||
libLCDdrivers_a_DEPENDENCIES = @DRIVERS@
|
libLCDdrivers_a_DEPENDENCIES = @DRIVERS@
|
||||||
libLCDdrivers_a_LIBADD = @DRIVERS@
|
libLCDdrivers_a_LIBADD = @DRIVERS@
|
||||||
|
|||||||
+492
-402
File diff suppressed because it is too large
Load Diff
+12
-23
@@ -1,23 +1,15 @@
|
|||||||
/* Driver module for Hitachi HD44780 based Optrex DMC-20481 LCD display
|
/*
|
||||||
* The module is operated in it's 4 bit-mode to be connected to a single
|
* Base driver module for Hitachi HD44780 based LCD displays. This is
|
||||||
* 8 bit-port
|
* a modular driver that allows support for alternative HD44780
|
||||||
|
* designs to be added in a flexible and maintainable manner.
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998 Richard Rognlie GNU Public License
|
* This file is released under the GNU General Public License. Refer to the
|
||||||
* <rrognlie@gamerz.net>
|
* COPYING file distributed with this package.
|
||||||
*
|
*
|
||||||
* Large quantities of this code lifted (nearly verbatim) from
|
* Copyright (c) 1999, 1995 Benjamin Tse <blt@Comports.com>
|
||||||
* the lcd4.c module of lcdtext. Copyright (C) 1997 Matthias Prinke
|
* 1999 Andrew McMeikan <andrewm@engineer.com>
|
||||||
* <m.prinke@trashcan.mcnet.de> and covered by GNU's GPL.
|
* 1998 Richard Rognlie <rrognlie@gamerz.net>
|
||||||
* In particular, this program is free software and comes WITHOUT
|
* 1997 Matthias Prinke <m.prinke@trashcan.mcnet.de>
|
||||||
* ANY WARRANTY.
|
|
||||||
*
|
|
||||||
* Matthias stole (er, adapted) the code from the package lcdtime by
|
|
||||||
* Benjamin Tse (blt@mundil.cs.mu.oz.au), August/October 1995
|
|
||||||
* which uses the LCD-controller's 8 bit-mode.
|
|
||||||
* References: port.h by <damianf@wpi.edu>
|
|
||||||
* Data Sheet LTN211, Philips
|
|
||||||
* Various FAQs and TXTs about Hitachi's LCD Controller HD44780 -
|
|
||||||
* www.paranoia.com/~filipg is a good starting point ???
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HD44780_H
|
#ifndef HD44780_H
|
||||||
@@ -25,10 +17,8 @@
|
|||||||
|
|
||||||
#include "port.h"
|
#include "port.h"
|
||||||
|
|
||||||
|
|
||||||
extern lcd_logical_driver *hd44780;
|
|
||||||
|
|
||||||
int HD44780_init(struct lcd_logical_driver *driver, char *args);
|
int HD44780_init(struct lcd_logical_driver *driver, char *args);
|
||||||
|
/* The following methods can all be hidden. They are used through function ptrs
|
||||||
void HD44780_close();
|
void HD44780_close();
|
||||||
void HD44780_flush();
|
void HD44780_flush();
|
||||||
void HD44780_flush_box(int lft, int top, int rgt, int bot);
|
void HD44780_flush_box(int lft, int top, int rgt, int bot);
|
||||||
@@ -43,7 +33,6 @@ void HD44780_num(int x, int num);
|
|||||||
void HD44780_set_char(int n, char *dat);
|
void HD44780_set_char(int n, char *dat);
|
||||||
void HD44780_icon(int which, char dest);
|
void HD44780_icon(int which, char dest);
|
||||||
void HD44780_draw_frame(char *dat);
|
void HD44780_draw_frame(char *dat);
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user