Timer0_mills error

Hi @say2k

indeed you should confirm or correct what @johnwasser was asking

is this a correct description of what you want the code to do?
confirm or correct.

If it is not correct post a corrected description in the style like johnwasser has written it.
the character of how johnwasser described it is
avoiding all programming terms
just use
time and step-positions

You are trying to reset function millis() to zero.
This works for an arduino uno just fine.
The

this board uses the ATmega4809 and a different core.
Core here means the basic code that "translates" the C++-functions like pinMode(), digitalWrite() etc. to adress the real hardware of the ATmega4809.

The people who have written this core seem to have decided to not use the core-variable
timer0_millis anymore.

You should'nt mess around with core-variables anyway. If you manipulate core-variables you are in the danger of screwing up things.
Your code does some timing things which can be quite easy done without resetting the function millis().

You seem to not yet fully understand how function millis() works and how to use it.

I have written a tutorial that shall explain timing how you are using it.
This tutorial is dedicated to beginners and shall be explicitly easy to understand.
To improve the tutorial questions are always welcome.

best regards Stefan