If i press zone 4, it will blink, but then, if i press zone 1, zone 4's light will stay on, and zone 1 will blink. If i press zone 4 again, nothing happens (zone 4 is still on and zone 1 blinks).
If i press zone 1, it will blink, but then in i press zone 4, zone 1 keeps blinking, and zone 4 doesn't light up.
sketch_sep13a.ino: In function ‘void blinker()’:
sketch_sep13a:4: error: ‘zone1state’ was not declared in this scope
sketch_sep13a:4: error: ‘BLINK’ was not declared in this scope
sketch_sep13a:5: error: ‘oldtimer’ was not declared in this scope
sketch_sep13a:5: error: ‘interval’ was not declared in this scope
sketch_sep13a:7: error: ‘zone1s’ was not declared in this scope
sketch_sep13a:14: error: ‘zoneL1’ was not declared in this scope
sketch_sep13a:14: error: ‘zone1s’ was not declared in this scope
sketch_sep13a:18: error: ‘zoneL1’ was not declared in this scope
sketch_sep13a:18: error: ‘ISON’ was not declared in this scope
sketch_sep13a:21: error: ‘zone2state’ was not declared in this scope
sketch_sep13a:21: error: ‘BLINK’ was not declared in this scope
sketch_sep13a:22: error: ‘oldtimer’ was not declared in this scope
sketch_sep13a:22: error: ‘interval’ was not declared in this scope
sketch_sep13a:24: error: ‘zone2s’ was not declared in this scope
sketch_sep13a:31: error: ‘zoneL2’ was not declared in this scope
sketch_sep13a:31: error: ‘zone2s’ was not declared in this scope
sketch_sep13a:35: error: ‘zoneL2’ was not declared in this scope
sketch_sep13a:35: error: ‘ISON’ was not declared in this scope
sketch_sep13a:38: error: ‘zone3state’ was not declared in this scope
sketch_sep13a:38: error: ‘BLINK’ was not declared in this scope
sketch_sep13a:39: error: ‘oldtimer’ was not declared in this scope
sketch_sep13a:39: error: ‘interval’ was not declared in this scope
sketch_sep13a:41: error: ‘zone3s’ was not declared in this scope
sketch_sep13a:48: error: ‘zoneL3’ was not declared in this scope
sketch_sep13a:48: error: ‘zone3s’ was not declared in this scope
sketch_sep13a:52: error: ‘zoneL3’ was not declared in this scope
sketch_sep13a:52: error: ‘ISON’ was not declared in this scope
sketch_sep13a:55: error: ‘zone4state’ was not declared in this scope
sketch_sep13a:55: error: ‘BLINK’ was not declared in this scope
sketch_sep13a:56: error: ‘oldtimer’ was not declared in this scope
sketch_sep13a:56: error: ‘interval’ was not declared in this scope
sketch_sep13a:58: error: ‘zone4s’ was not declared in this scope
sketch_sep13a:65: error: ‘zoneL4’ was not declared in this scope
sketch_sep13a:65: error: ‘zone4s’ was not declared in this scope
sketch_sep13a:69: error: ‘zoneL4’ was not declared in this scope
sketch_sep13a:69: error: ‘ISON’ was not declared in this scope
Thanks for your attention, but Robin2 hit the nail on the head.
if(timer - oldtimer > interval) never was true. I made the topic too soon. My apologies.
Thanks for the tip about the optimization, Robin. Also, your funny MarkT (but what your saying is true, i should have posted all my code. I assumed incorrectly it was something wrong with the code, not the logic at first.