From 556190fdfe9519f1968693e6c090ad76f0597008 Mon Sep 17 00:00:00 2001
From: Patrick Valk
Date: Mon, 7 Nov 2016 11:31:48 +0100
Subject: [PATCH] Personal drivers/hd44780.c
---
server/drivers/hd44780.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c
index 4e85b4c..23f89ad 100644
--- a/server/drivers/hd44780.c
+++ b/server/drivers/hd44780.c
@@ -622,8 +622,17 @@ HD44780_position(Driver *drvthis, int x, int y)
if ((relY % 4) >= 2)
DDaddr += p->width;
}
- p->hd44780_functions->senddata(p, dispID, RS_INSTR, POSITION | DDaddr);
+ //p->hd44780_functions->senddata(p, dispID, RS_INSTR, POSITION | DDaddr);
+
+ p->hd44780_functions->senddata(p, dispID, RS_INSTR, 0x80);
p->hd44780_functions->uPause(p, 40); /* Minimum exec time for all commands */
+
+ p->hd44780_functions->senddata(p, dispID, RS_INSTR, relY);
+ p->hd44780_functions->uPause(p, 40); /* Minimum exec time for all commands */
+
+ p->hd44780_functions->senddata(p, dispID, RS_INSTR, x);
+ p->hd44780_functions->uPause(p, 40); /* Minimum exec time for all commands */
+
if (p->hd44780_functions->flush != NULL)
p->hd44780_functions->flush(p);
}