Re: Project TinTac - a breadboard setup for testing OnStep code

Howard Dutton

On Wed, Jul 29, 2020 at 08:18 AM, <jsalbinson@...> wrote:
Maybe of interest: Bill Earl (
There's plenty similar code in OnStep except I do the math correctly.

Don't use this form, it will fall down (after several days) due to overflow:

  • if((ledState == HIGH) && (currentMillis - previousMillis >= OnTime))

It should be:

if ((ledState == HIGH) && ((long)(currentMillis - previousMillis) >= OnTime))

Join to automatically receive all group messages.