Enhancement of scheduler and interrupt activation

Both the scheduler and activation of interrupt handler accept the name of the function to call as a parameter, but do not seem to accept a parameter with the function name. For example, sstart(“blink(5)”, 1000, 5).

I have tried with the scheduler to pass a parameter, but nothing seems to happen. No error, just no scheduling.

With the scheduler, one function could be used to blink or monitor multiple pins at different intervals.

With an interrupt handler, one function could handle interrupts for multiple pins.

In complex situations, this could help get around the 16 function limit.

Have I missed an existing way to reuse a function?

I don’t think scheduler and interrupt accept parameter

they need a global variables, I think.

Correct, this is not proper “threading”. It is a simple call to a function periodically. But I think the docs need to explain this further. Thanks Mike

Worth considering as a future enhancement?