Microcontroller › 8051 › Significance of * (star) in this program › Hi Ganesh,Next time when you
December 13, 2013 at 5:56 am
#10731
Participant
Hi Ganesh,
Next time when you post the code, please don’t forget to format it in the proper way as I’ve done for you this time.
void lcd_disp(unsigned char C)
{
LCD=C; LCD_RS=1; LCD_EN=1;
delay_ms(1);
LCD_EN=0;
}
void lcd_data(unsigned char *disp)
{
while(*disp)
lcd_disp(*disp++);
}
The *disp is a pointer to an array that holds the character to be displayed. Initially it will point to the first charcter of the array and as you increase the pointer like (*disp++) it point to the succeeding characters.
Is this code working?
If you have any doubts, please feel free to post here.