Personal drivers/hd44780.c
This commit is contained in:
@@ -622,8 +622,17 @@ HD44780_position(Driver *drvthis, int x, int y)
|
|||||||
if ((relY % 4) >= 2)
|
if ((relY % 4) >= 2)
|
||||||
DDaddr += p->width;
|
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->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)
|
if (p->hd44780_functions->flush != NULL)
|
||||||
p->hd44780_functions->flush(p);
|
p->hd44780_functions->flush(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user