All the cool kids are doing it! Actually, I just think I'm going to have a lot of questions, and I thought "all the cool kids" had a good idea. So, let's start with the questions!
How do I make a timer that runs a subroutine, say, every two seconds?
The only way I can think of is to have a huge multi-byte integer and increase it at the start of each cycle of my program loop, and then check for the highest byte to be 255 or something and, if so, execute the routine...
Is there a better way? If not, how many bytes would I need in order to have a long enough delay? (I'm thinking it'd be a lot...)
Thanks in advance for all the help!
-Zippy (Taw)
How do I make a timer that runs a subroutine, say, every two seconds?
The only way I can think of is to have a huge multi-byte integer and increase it at the start of each cycle of my program loop, and then check for the highest byte to be 255 or something and, if so, execute the routine...
Is there a better way? If not, how many bytes would I need in order to have a long enough delay? (I'm thinking it'd be a lot...)
Thanks in advance for all the help!
-Zippy (Taw)