Return to 44780reg.h CVS log | Up to [local] / funnyos / dev / lcd |
File: [local] / funnyos / dev / lcd / 44780reg.h (download)
Revision 1.1, Mon Jan 7 20:24:48 2008 UTC (16 years, 5 months ago) by nbrk
initial bits of driver for Hitachi HD44780-compatible LCD controllers. machine dependent part sits in p64lcd.c; it doesn't initialize LCD properly - missed some timings, i think. unfortunately, i have fryed my brand-new 16x4 LCD and can't continue work right now.. very sadly, R.I.P :( |
/* * $Id: 44780reg.h,v 1.1 2008/01/07 20:24:48 nbrk Exp $ */ #ifndef H44780REG_H #define H44780REG_H /* * 44780 commands. */ #define H44780_CMD_CLS 0x01 #define H44780_CMD_CR 0x02 #define H44780_CMD_SETDIR 0x04 #define H44780_ID 1 << 1 #define H44780_S 1 #define H44780_CMD_ENABLE 0x08 #define H44780_D 1 << 2 #define H44780_C 1 << 1 #define H44780_B 1 #define H44780_CMD_SHIFT 0x10 #define H44780_SC 1 << 3 #define H44780_RL 1 << 2 #define H44780_CMD_IFLEN 0x20 #define H44780_DL 1 << 4 #define H44780_N 1 << 3 #define H44780_F 1 << 2 /* TODO */ #endif