Hi guys,
Thanks very much for the responses - my project is almost complete...
one thing I wanted to know what about printing to LCD display:
at the moment I am currently using:
sprintf (botmessage," %d:%d:%d", hour, min, sec) // and itoa for something else
but when a number for minutes for example is below 10 the display looks like
7:1 instead of 7:01
I have done away of separating the tens and units out as shown
(botmessage," %d%d:%d%d:%d%d", hour1, hour2, min1, min2, sec1, sec2)
to achieve 7:01 =====> but was wondering if there was a simpler way of achieving this??
Thanks for your help