Personal drivers/hd44780.c

This commit is contained in:
Patrick Valk
2016-11-07 11:31:48 +01:00
parent cdd814c2af
commit 556190fdfe
+10 -1
View File
@@ -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);
}