Demonstration code for several things at the same time

Two hints...

  1. You assume the delta is always 1. It is not.
  2. You assume the time to execute loop is <= 1 millisecond. In your example that may be true but that will not be true for every application.

Assume millis returns values evenly divisible by seven (0, 7, 14, etcetera) and work through the code by hand.

3 Likes