Example Initialization Program
/************************************************************************/
void command1(char i)
//Top half of the display
{
P1 = i;
W = 0;
RS = 0;
E1 = 1;
delay(2);
E1 = 0;
}
void command2(char i)
//Bottom half of the display
{
P1 = i;
W = 0;
RS = 0;
E2 = 1;
delay(2);
E2 = 0;
}
/************************************************************************/
void writedata1(char i)
//Top half of the display
{
P1 = i;
W = 0;
RS = 1;
E1 = 1;
delay(2);
E1 = 0;
}
void writedata2(char i)
{
//Bottom half of the display
[10]