Run if (or similar) statement once

  • timer_pulsecount starts at 0, then with button presses increments 1,2,3,1,2,3 correctly.
  • tooth_spacing outputs 10
  • three_pulsetimecopy outputs the time between pulses 1 & 3, and does not change again until the next three pulses
  • dpm starts at some -number, then goes to 0 with three button presses