OK!v923z wrote:...I think I had a pull request in mind...
I'm unconvinced. Your application requires it because you are dynamically allocating timers, not because it's single-shot:v923z wrote:...I think any single-shot, non-blocking timer would require such a feature.
Code: Select all
def callback(t):
t.deinit()
t.callback(None)
timer = pyb.Timer(2)
timer.init(freq=1)
timer.callback(callback)