VK202-25 Custom Character Throbber
Posted: Mon Mar 25, 2013 1:12 pm
I'm brand new to programming the VK202-25 display so bear with me... Don't be afraid to point me to FAQ's or other places of interest. I'm just not sure where these are yet...
I'm in the process of displaying characters on the display ( using write() commands in a c program on Linux )
I tried writing a very simple program to display the old '|', '/', '-', '\' text throbber. Come to find out my display shows that 'Y' with some lines through the lower stem instead of '\' which means my display is using the Japanese Character Set instead of the European set.
Is there a way to telly my display to use the European character set instead of the Japanese character set? Can I load complete custom character sets?
Assuming there isn't a way ... I see there are ways to create up to 8 custom characters via:
0xfe 0x4e n b[0-7]
n = Character ID
b[0-7] = bit pattern of the 8 custom character.
Once the custom character is loaded, how do I display it? do I just send 0x00 thru 0x07 like this:
I'm in the process of displaying characters on the display ( using write() commands in a c program on Linux )
I tried writing a very simple program to display the old '|', '/', '-', '\' text throbber. Come to find out my display shows that 'Y' with some lines through the lower stem instead of '\' which means my display is using the Japanese Character Set instead of the European set.
Is there a way to telly my display to use the European character set instead of the Japanese character set? Can I load complete custom character sets?
Assuming there isn't a way ... I see there are ways to create up to 8 custom characters via:
0xfe 0x4e n b[0-7]
n = Character ID
b[0-7] = bit pattern of the 8 custom character.
Once the custom character is loaded, how do I display it? do I just send 0x00 thru 0x07 like this:
Code: Select all
const unsigned char custom[] = {0xfe, 0x43, 0x00, 8, 20, 8, 3, 4, 4, 3};
write(fd, custom, 10);
c = 0x00;
write(fd, &c, 1);