khoih-prog/ESP8266TimerInterrupt

byKhoi Hoang
library

This library enables you to use Interrupt from Hardware Timers on an ESP8266-based board. It now supports 16 ISR-based timers, while consuming only 1 Hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're...

Depend on it

  1. Open platformio.ini, a project configuration file located in the root of PlatformIO project.
  2. Add the following line to the lib_deps option of [env:] section:
    khoih-prog/ESP8266TimerInterrupt@^1.6.0
  3. Build a project, PlatformIO will automatically install dependencies.

Include it

ESP8266TimerInterrupt library provides the following header files that can be included in your project:
  • ESP8266TimerInterrupt.h
  • ESP8266_ISR_Timer.h
  • ESP8266_ISR_Timer.hpp
#include <ESP8266TimerInterrupt.h>

Command Line Interface

  1. Open PlatformIO Core CLI
  2. Change directory (cd) to the PlatformIO project where platformio.ini is located.
  3. Copy the following pio pkg install command and paste into the CLI shell, press Enter:
    pio pkg install --library "khoih-prog/ESP8266TimerInterrupt@^1.6.0"