custom character weirdness on a 402-12

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

Moderators: Henry, Mods

Post Reply
resolve
LCD?
Posts: 3
Joined: Sat Oct 20, 2001 6:00 pm
Location: Australia
Contact:

Post by resolve »

greetings from australia :-)

i'm currently having some troubles setting custom characters on my newly acquired LCD (which i'm very happy with, otherwise). the problem seems to be with specifying 10 (0x0A) as one of the bytes.

other numbers work - 8 yields a single dot, for instance, and 9 works as expected, too. but specifying 10 seems to give weird pixels on the row i'm trying to set, and gives me the correct pixels on the row below.

.. is this a known bug, or is there something i've missed?

thanks in advance :-)

- damien

Aniso
-=Beloved by all=-
-=Beloved by all=-
Posts: 286
Joined: Tue Aug 14, 2001 6:00 pm
Location: ...I could tell you my velocity...

Post by Aniso »

I believe that you will find that this is compiler wierdness. the 10 (0x0A) is being interpreted as a carriage return. This problem is common (from what I can tell) in Linux, MS PERL, and BASIC. You must find some way of making the compiler stop trying to be smart about it. Try sending it raw without using any formatted output functions.

resolve
LCD?
Posts: 3
Joined: Sat Oct 20, 2001 6:00 pm
Location: Australia
Contact:

Post by resolve »

Thanks! I'm guessing it's probably a posix tty setting I can change (I'm doing this in python), I'll look into it further.

Cheers!

Post Reply