Run Function Throughout Program

Sorry, I only have time for a quick - "I think you're about to get an education in ..."

  1. using assembly code in a sketch.
  2. reading the ATmega datasheet.
  3. setting Timer1.
  4. using the Timer interrupt
  5. putting the LED-moving code in the interrupt-called routine.
    Good luck!
    PS. Perhaps search the forum using those new keywords?