dean blackketter
2003-02-22 13:09:14 UTC
Hey Sean (et. al.),
I'm trying to create some custom characters to improve the look of the progress bar and I'm a bit stumped.
I'm using Sean's sample code that he commented out of VFD.pm and tried to make my own custom character like this:
sub testCustomChar {
return(createCustomChar (
0,
0b00011111,
0b00010101,
0b00001010,
0b00010101,
0b00001010,
0b00010101,
0b00011111,
0b00000000, # underline bit
)
);
}
problem is that the character comes out looking like this on the display:
11111
10101
10101
01010
10101
11111
00000
Which is to say that it appears that the third byte corresponding to the third line on the character (0b00001010) is getting dropped somewhere. The wacky thing is that I can make several other characters just fine, but for some reason this particular pattern is making the display drop a byte.
Any thoughts?
-dean
I'm trying to create some custom characters to improve the look of the progress bar and I'm a bit stumped.
I'm using Sean's sample code that he commented out of VFD.pm and tried to make my own custom character like this:
sub testCustomChar {
return(createCustomChar (
0,
0b00011111,
0b00010101,
0b00001010,
0b00010101,
0b00001010,
0b00010101,
0b00011111,
0b00000000, # underline bit
)
);
}
problem is that the character comes out looking like this on the display:
11111
10101
10101
01010
10101
11111
00000
Which is to say that it appears that the third byte corresponding to the third line on the character (0b00001010) is getting dropped somewhere. The wacky thing is that I can make several other characters just fine, but for some reason this particular pattern is making the display drop a byte.
Any thoughts?
-dean