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 (https://learn.adafruit.com/multi-tasking-the-arduino-part-1/a-classy-solution)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:
It should be: if ((ledState == HIGH) && ((long)(currentMillis - previousMillis) >= OnTime))
|
|