LCD displays garbage before restarting the power

29 views Asked by At

this is a code that prints the word SMROO in the 4 lines , after uploading the project , this happens enter image description here

but when I turn off the power then turn it on again it works well , it also works well on Proteus ,

void main(void)
{
    _delay_ms(2000);
    HLCD_voidInit4b();
    HLCD_voidGoToPosition(LCD_ROW_ONE, 1);
    HLCD_voidSendString("SMROO");
    HLCD_voidGoToPosition(LCD_ROW_TWO, 1);
    HLCD_voidSendString("SMROO");
    HLCD_voidGoToPosition(LCD_ROW_THREE, 1);
    HLCD_voidSendString("SMROO");
    HLCD_voidGoToPosition(LCD_ROW_FOUR, 1);
    HLCD_voidSendString("SMROO");
    while(1);
}

is this a solvable problem or should I accept that LCD is built like that ?

0

There are 0 answers