The thing that bugs me is how do I repurpose the timer with the same id?
As soon as I add new callback the timer starts with old freq value i.e. I did call
Ahaaa... I had utterly wrong notion of all counters having the same fixed maximum value, ticking at some internal maximum frequency, and wrapping to zero when the max value is reached. :oops: I like this notion of having my own, per instance, counter's max value and wrapping to zero when triggered, ...
While trying to make a PR for addition of example "How to use named function for a pyb.Timer's callback" (i.e. make it obvious that named function will receive 1 argument - timer object) I came up with: def tick(timer): # we will receive the timer object when being called from the timer print(timer....