That makes sense, if it is less than or equal to 25 it will wait 30mS and reevaluate it again for 25, once it exceeds 25 it will continue with the other else if commands and when it finds which one it satisfies, sets the keypressed value to that number and then it has a discrete value for the switch/case statements which will easily implement the corresponding commands. then it goes back to the beginning.
if a key is pressed though and held longer than the 30mS will it then execute the case again?
thanks for throwing more ideas at me, I rewrite the code each time and learn a new way of looking at it. a great learning experience. ![]()
-carl