At 12:21 PM 7/20/01 -0400, you wrote: >sprintf(string1,"Temperature: %d F"); Oops, this should be: sprintf(string1,"Temperature: %d F", Temperature); so if Temperature is 330, it will make string1 = "Temperature: 330 F" And while I'm at it, I'll expand a bit on the below:- >I'd probably do the whole thing in one line like this: >printf("%02d:%02d %s\n", Hours, Minutes, am_pm_flag ? "AM" : "PM"); And this would be more aesthetically pleasing, perhaps, as: printf("%2d:%02d %s\n", Hours, Minutes, am_pm_flag ? "AM" : "PM"); With Hours == 2, Minutes == 3, am_pm_flag == 0, it will output: " 2:03 PM" (without the quotes, of course) To do a blinky cursor (assuming you are updating whatever it is often enough) /* print the time with blinking cursor */ printf("%2d%c%02d %s\n", Hours, cursor_on ? ':' : ' ', Minutes, am_pm_flag ? "AM" : "PM"); Note: printf does NOT automatically append a newline, so you can easily break this up into pieces if it makes the program simpler. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu