aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <>2004-05-22 04:21:02 +0000
committerreinelt <>2004-05-22 04:21:02 +0000
commit34e723af3ced29a743e5f4974ae365e746bad4d8 (patch)
tree9749e51ff662754edbdc3572cb5e26a5afbfd0da
parent117261264de540759d0083402b8e476dae2a2b98 (diff)
downloadlcd4linux-34e723af3ced29a743e5f4974ae365e746bad4d8.tar.gz
[lcd4linux @ 2004-05-22 04:21:02 by reinelt]
fix for display RAM layout on 16x4 displays (thanks to toxicated101)
-rw-r--r--drv_HD44780.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c
index 38c62a2..7f47915 100644
--- a/drv_HD44780.c
+++ b/drv_HD44780.c
@@ -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;
ef='/debian/dtv-scan-tables.git/commit/debian/changelog?h=debian/0%2bgit20160503.4f192bd-1&id=199e3529a4e095c4a9974199ef5e9042e77e1e78&follow=1'>New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9