mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2004-05-22 04:21:02 by reinelt]
fix for display RAM layout on 16x4 displays (thanks to toxicated101) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@425 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+7
-3
@@ -1,4 +1,4 @@
|
||||
/* $Id: drv_HD44780.c,v 1.18 2004/03/20 07:31:32 reinelt Exp $
|
||||
/* $Id: drv_HD44780.c,v 1.19 2004/05/22 04:21:02 reinelt Exp $
|
||||
*
|
||||
* new style driver for HD44780-based displays
|
||||
*
|
||||
@@ -29,6 +29,10 @@
|
||||
*
|
||||
*
|
||||
* $Log: drv_HD44780.c,v $
|
||||
* Revision 1.19 2004/05/22 04:21:02 reinelt
|
||||
*
|
||||
* fix for display RAM layout on 16x4 displays (thanks to toxicated101)
|
||||
*
|
||||
* Revision 1.18 2004/03/20 07:31:32 reinelt
|
||||
* support for HD66712 (which has a different RAM layout)
|
||||
* further threading development
|
||||
@@ -484,8 +488,8 @@ static void drv_HD_goto (int row, int col)
|
||||
// the HD66712 doesn't have a braindamadged RAM layout
|
||||
pos = row*32 + col;
|
||||
} else {
|
||||
// 16x4 Displays use a slightly different layout
|
||||
if (DCOLS==16 && DROWS==4) {
|
||||
// 16*x Displays use a slightly different layout
|
||||
if (DCOLS==16) {
|
||||
pos = (row%2)*64+(row/2)*16+col;
|
||||
} else {
|
||||
pos = (row%2)*64+(row/2)*20+col;
|
||||
|
||||
Reference in New Issue
Block a user