Timing problem with millis

this fixed it
it was exactly as you said it is
the two LEDs are now perfectly in sync as far as my eyes can see
thanks a lot you are a brilliant person

1 Like