Issues with attachInterrupt

Delaying 16 ms does NOT meet this guideline.

Doing it 1000 times is just plain stupid.