Formatting a button as a timer
I have a sleep timer that I want to implement into a single button. I was wondering if it was possible, thru TPD4, to format a general-type button so that when in the off state it showed a timer with the format of 00:00. I already have this button working with a send_command ^TXT structure, where I am sending the current number of a variable that counts down every second, but it only shows as 30,29,28,27, etc. Is this possible to do with TPD4, or do I need to send a type of formatted code with my send_command ^TXT structure, where I add '00:',(nSleep)? If that is my only option, what would the best way be to program it so that I could show minutes and seconds remaining, like 19:25? I am assuming something with an arithmetic operation for the 19 and then the remainder in seconds.