TimerInterrupt#

class ultimo_machine.time.TimerInterrupt(timer_id, mode=machine.Timer.PERIODIC, freq=-1, period=-1)#

Schedule an timer-based interrupt source.

The class acts as a context manager to set-up and remove the IRQ handler.

Methods

close()

Stop the timer.

Attributes

event

An uasyncio ThreadSafeFlag which is set to wake the iterators.

async close()#

Stop the timer.

event: uasyncio.ThreadSafeFlag#

An uasyncio ThreadSafeFlag which is set to wake the iterators.

flow#

alias of EventFlow