Petervdpol wrote:Thank you for your time, but I am afraid this solution doesn't do the job:
"previous_millis" is a sketch variable, it is not part of the SDK/core.
I didn't provide the whole code.
Simply add it globally in your sketch as "unsigned long previous_millis = 0;"