uploaded 2 months ago
C++ Timers for ESP-IDF which can be started / stopped / resumed.

readme

Timer Component

Badge

The timer component provides a few different types of timers to cover standard periodic execution as well as periodic / sporadic exectuion which requires high-resolution timing.

Table of Contents

Timer

The Timer component provides a cross-platform API for executing callback functions with a specified period. The timer can be started, stopped, and restarted, and the timer can have an optional initial delay before the first callback is executed. The timer can be configured to run once or repeatedly.

The timer API is implemented using the Task component, and the timer callback is executed in the context of the timer task.

High-Resolution Timer

The HighResolutionTimer component provides an esp-idf specific API to create managed high resolution timer objects using the esp_timer API. The timer can be started, stopped, and restarted, and it can be configured as a one-shot timer or a periodic timer.

Example

The example shows some various different ways of starting and stopping timers, as well as some different examples of ways the timers can be configured, such as repeating or one-shot, and how to use the timer's callback function.

Links

Supports all targets

Maintainer

  • William Emfinger <waemfinger@gmail.com>

License: MIT

To add this component to your project, run:

idf.py add-dependency "espp/timer^1.0.6"

or download archive

Stats

  • Archive size
    Archive size ~ 15.56 KB
  • Downloaded in total
    Downloaded in total 3.9k times
  • Downloaded this version
    This version: 879 times

Badge

espp/timer version: 1.0.6
|