Errors in drawing rectangles and lines

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
ashu
LCD?
Posts: 3
Joined: Sun Oct 07, 2001 6:00 pm
Location: Ashutosh M.
Contact:

Post 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.
Ashutosh Malviya
DeepRoot Linux
- server appliances - linux support -

Braqua
LCD!
Posts: 17
Joined: Wed Jan 02, 2002 4:00 pm
Location: Bergen, Norway

Post by Braqua »

Just for fun, can you try to use coordinates 0xA? As in, use Hex-coordinates?

Braqua
--------------------------
Insert funny text here
--------------------------

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

What LCD are you using? I will test it here as well.
Henry J.
President
Matrix Orbital

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post 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.
Henry J.
President
Matrix Orbital

grinder
LCD?
Posts: 1
Joined: Fri Jan 04, 2002 4:00 pm

Post 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.

Post Reply