Personal drivers/hd44780.c

This commit is contained in:
Patrick Valk
2016-10-29 14:20:39 +02:00
parent cdd814c2af
commit 1e733f91ab
20 changed files with 1962 additions and 1 deletions
+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);
}