One action per ten seconds
in
Programming Questions
•
1 month ago
Hey all,
working on a personal project, involves the timing. So i've got a command that calculates the amount of seconds passed (millis()/1000) and I've defined another integer which is the seconds passed % 10.
- void button1(){
- if(button1&&button1time==0){
- counter++;
- }
- }
however it then actually adds 60 every 10 seconds, rather than 1, can anyone shed some light on what i can do to combat this?
Thanks in advanced!
1