This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Displaying Data on LCD

Hello Sir, i have a small question to ask. I have a LCD display interfaced to a 8051 micro controller.

If i have x for which the values ranges from 10 to 1
and i want to display it on the LCD screen with a string, how can i write the command?
for example the data that the LCD should show is

//////////////////////
Availability 10
Availability 9
Availability 8 . . .
Availability 1
//////////////////////

where the number is x which ranges from 10 to 1 and the "Availabilty" is the string it should show each time the process self repeats.

its something like

lcd_command("Availability [x]")
for(x=10,x>1,x-)

is this correct?

Thank you

0