I am trying to input any value using a keypad and decrements the value but when i am displaying the value i am getting 255 for any key pressed. How can i solve this problem. here is a piece of code below
"Is this you trying to input the time your process needs to run, and to run it for that time, as discussed elsewhere?"
yes i want to enter the time it takes to finish the job number and decrements that time and when it equal to zero sound the siren to indicate that time up job is finished.and the alarm should be cleared by the password
Blue10:
yes i want to enter the time it takes to finish the job number and decrements that time and when it equal to zero sound the siren to indicate that time up job is finished.and the alarm should be cleared by the password
Ok well the password part is new- you didn't mention that in the other thread- so my code there uses a button to silence the siren.
But my code in that other thread does show how to take a multi-digit integer into a variable. In the case of the time, it delay()-lessly checks to see if the time has expired and then ends the process (I just had an led on) then sounds the siren. (My code doesn't show how much of the time has passed or how much is left, but I daresay that could be accommodated easily enough if it's a requirement.)