Menu

How to goto Position 10/1?

2003-03-01
2003-03-01
  • Timo Teifel

    Timo Teifel - 2003-03-01

    Hi,
    I tried to use the goto command, and it works fine, except for the x-Position 10.
    I found out this is because the ASCII Code 10 gets interpreted as Line Feed or something like that, and that the driver gets 2 inputs instead of one...
    How can I change this, so that it'll work?

    Thanks!
    Timo

     
    • Timo Teifel

      Timo Teifel - 2003-03-01

      well, I fixed it myself :)
      I changed the Gotoxy Code, so now it discards the highest bit of the coordinates.
      So if you want to go to Position 10, just send
      10+0x80 to the display!

      New code:
      lines 470~ change the 2 lines:
      dcol=new_dcol & 0x7F;
      dline=new_dline & 0x7F;

      I'll send this code to the author of the program also, maybe it gets included in CVS...                   
      Timo

       

Log in to post a comment.

MongoDB Logo MongoDB