Displaying text
Hello Reader,
Here is the another program that is related to the LCD this is the basic program.
i)making string point variable.
ii)passing the starting address of string to that pointer variable.
iii)passing string pointer value to LCD_write function.
void LCD_write_string(unsingned char *str) //store address value of string
in pointer*str
{
int i=0;
while(str[i]!='\0') //loop will go on till the NULL charater in the string
{
LCD_write(str[i]); //sending data on LCD byte
i++;
}
return;
}
Here is the another program that is related to the LCD this is the basic program.
i)making string point variable.
ii)passing the starting address of string to that pointer variable.
iii)passing string pointer value to LCD_write function.
void LCD_write_string(unsingned char *str) //store address value of string
in pointer*str
{
int i=0;
while(str[i]!='\0') //loop will go on till the NULL charater in the string
{
LCD_write(str[i]); //sending data on LCD byte
i++;
}
return;
}
0 comments:
Post a Comment