since I am new to Arduino programming, I would like to ask you a question.
How can I set the duration of task to be 10ms?
I experiment with an interrupt and I would like it to perform for 10ms.
Thank you very much in advance and I wish you a nice weekend
The code takes as long as needed to run.
In an ISR millis() usually won’t tick, and it’s usually a bad idea to block the main code for a long time (10ms can be a long time)
Did this sounded for a tick timer used for an OS, didn´t it?
Take a view to BWOD example of the IDE and build a state and time event driven scheduler based on a array of function pointers.
Have a nice day and enjoy coding in C++.