Hi, is there any function that allows clear lcd?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaNa_4623721
Level 1
Level 1
First like given

Uso psoc desingner 5.4, como puedo hacer para clear ldc?

0 Likes
1 Solution
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Unfortunately there is no function available, which can clear the LCD. It has to be done by writing spaces to all character positions in the LCD.

You can kindly use this code snippet to clear a 2x16 LCD.

char str_empty[16] = "                ";

LCD_Position(0, 0);

LCD_PrString(str_empty);

LCD_Position(1,0);

LCD_PrString(str_empty);

View solution in original post

1 Reply
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Unfortunately there is no function available, which can clear the LCD. It has to be done by writing spaces to all character positions in the LCD.

You can kindly use this code snippet to clear a 2x16 LCD.

char str_empty[16] = "                ";

LCD_Position(0, 0);

LCD_PrString(str_empty);

LCD_Position(1,0);

LCD_PrString(str_empty);