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); }