Page 1 of 1

Posted: Wed Oct 10, 2001 12:45 pm
by ashu
Hi..

back once again... :smile:

I've also been experimenting with drawing lines and rectangles and boxes.... and a funny thing is happenning...

generally it works perfectly... but if i give the the number 10 as the co-ordinate (either x or y) then it simply jumps to 13. I have been totally unsuccessful at getting any basic figure to draw cleanly with a 10.

Let me illustrate this a little more: if i try to draw a line from (0,0) to (10,0) - it actually draws the line from (0,0) to (13,0)!!!!! :sad:

the same thing happens when i try to draw bar graphs... i cannot draw a graph of value 10 or reference number 10... in both these cases - it takes 13 instead of 10....

i can also include my code if that can be of some help in resolving this nasty problem...

thanks a lot
ashutosh.

Posted: Thu Jan 03, 2002 7:17 pm
by Braqua
Just for fun, can you try to use coordinates 0xA? As in, use Hex-coordinates?

Braqua

Posted: Thu Jan 03, 2002 9:50 pm
by Henry
What LCD are you using? I will test it here as well.

Posted: Fri Jan 04, 2002 10:27 am
by Henry
I tried to draw a line using MOGD from 0,0 to 10,10 on the GLK12232-25-WBL Code Rev 1.6. I had no problems. Nothing in the line drawing area has changed as far as I know.

Posted: Sat Jan 05, 2002 8:04 am
by grinder
What software are you using?

A 10 = 0x0A = LF = n, and a 13 = 0x0D = CR = r

Some software may do some translation, for instance replacing LF with CR+LF. For instance, in Hyper Terminal there is a setting for "Send line ends with line feeds".

Just something to check.