Code: Select all
//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
//MikroeElektronika 2011
//http://www.mikroe.com
//HD44780 Alpha Numeric Character Set - FontName : MyChars5x8
//HD44780 Alpha Numeric Character Set - FontSize : 5 x 8
const unsigned short MyChars5x8[] = {
0x04, 0x0E, 0x1F, 0x0E, 0x04, 0x00, 0x00, 0x00, // Code for char num #0
0x1F, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x1F, // Code for char num #1
0x0E, 0x11, 0x1B, 0x11, 0x15, 0x11, 0x11, 0x0E, // Code for char num #2
0x00, 0x11, 0x1F, 0x11, 0x1B, 0x0E, 0x04, 0x00, // Code for char num #3
0x04, 0x0E, 0x1F, 0x0E, 0x04, 0x04, 0x04, 0x04, // Code for char num #4
0x04, 0x04, 0x04, 0x04, 0x04, 0x1F, 0x0E, 0x04, // Code for char num #5
0x1F, 0x00, 0x04, 0x04, 0x0E, 0x00, 0x00, 0x1F, // Code for char num #6
0x1F, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x1F // Code for char num #7
};
void InitHD44780CustomChars()
{
char i;
LCD_Cmd(64);
for (i = 0; i <= 63 ; i++)
LCD_Chr_Cp(MyChars5x8[i]);
LCD_Cmd(_LCD_RETURN_HOME);
}
You need to send all chars to the disp to redefine them.
- Click on [Export Button] (button with MikroE logo on toolbar).
On the export window, choose your language (Basic/Pascal/C) and check the checkbox [Add HD44780 CGRAM custom chars routines]
Try Search feature of the forum... this topic has been discussed a lot: