Skip to content
Snippets Groups Projects
Select Git revision
5 results

pyb.Timer.rst

Blame
  • 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.

    Methods