Displaying custom characters
Posted: Thu Feb 20, 2003 11:16 am
Hi all,
I wonder if some could give me a few pointers on where I might be going wrong. I'm trying to set up some custom characters and can't get the unit to write anything to the screen.
This is the perl code I'm using:
my $set = sprintf "%cN%c%c%c%c%c%c%c%c%c", 0xfe, 0x07,
0x04, 0x0e, 0x1f, 0x00, 0x1f, 0x0e, 0x04, 0x00;
print DISPLAY "$set\n";
$char = sprintf ("%c", 0x07);
$test_string = "This is a test: $char";
display_text ($test_string);
I can get it to display normal text and the built in characters such as the -> but I can't seem to display anything which I try and create!
I'm not totally sure about the numbers in $set but it doesn't seem to matter what I put in.
Any help gratefully received.
Thanks,
Gareth.
I wonder if some could give me a few pointers on where I might be going wrong. I'm trying to set up some custom characters and can't get the unit to write anything to the screen.
This is the perl code I'm using:
my $set = sprintf "%cN%c%c%c%c%c%c%c%c%c", 0xfe, 0x07,
0x04, 0x0e, 0x1f, 0x00, 0x1f, 0x0e, 0x04, 0x00;
print DISPLAY "$set\n";
$char = sprintf ("%c", 0x07);
$test_string = "This is a test: $char";
display_text ($test_string);
I can get it to display normal text and the built in characters such as the -> but I can't seem to display anything which I try and create!
I'm not totally sure about the numbers in $set but it doesn't seem to matter what I put in.
Any help gratefully received.
Thanks,
Gareth.