Select Git revision
-
Mike Causer authoredMike Causer authored
pyb.Timer.rst 11.91 KiB
class Timer -- control internal timers
Note: Memory can't be allocated during a callback (an interrupt) and so exceptions raised within a callback don't give much information. See :func:`micropython.alloc_emergency_exception_buf` for how to get around this limitation.
Constructors
Methods
class TimerChannel --- setup a channel for a timer
Timer channels are used to generate/capture a signal using a timer.
TimerChannel objects are created using the Timer.channel() method.