E Signal Must Go High
E Signal Must Go High
//=================================================================
void epulse ()
my_delay(5);
my_delay(5);
//=================================================================
//=================================================================
// Send 4 MSb
epulse();
// Send 4 LSb
epulse();
}
void ResetLCD ()
SendChar(0x03);
SendChar(0x03);
//=================================================================
// Initialize LCD
//=================================================================
void InitLCD ()
SendChar(0x06); // 1 Increment
automatically(i.e. move cursor to the right) No display shift
PORTC |= (1 << RS); // Switch to Data mode
//=================================================================
// Clear LCD
//=================================================================
void ClearDisplay ()
//=================================================================
//=================================================================
int len,count;
if (LineNo == 1)
else
len = strlen(string);
SendChar(string[count]);
//=================================================================
//=================================================================
void TestLCD ()
DDRC = 0x03F;
my_delay(10);
ResetLCD();
InitLCD();
DisplayText("12345", 2);