Button triggered Macro, problems with interrupt and delay

twistedsymphony:
thanks! I'll give the restructuring a shot.

Though the "myDelay" function in my code above is modeled after the "blink without delay" program.

it doesn't seem to actually work though, I'm not sure why.

Yeah, but it's not designed to be used inside an interrupt.